摘要: 路由(参数传递) 使用路径匹配的方式 修改路由配置 { path: '/xxx/xxx/:id', component: XXX } 主要是在 path 属性中增加了 :id 这样的占位符,来接受路由参数 例如 /xxx/xxx/66 ID={{$route.params.id}} 源组件 => 源 阅读全文
posted @ 2022-08-22 20:53 HuangBingQuan 阅读(410) 评论(0) 推荐(0) 编辑