This commit is contained in:
asd
2019-12-09 09:49:31 +08:00
parent 6d619ed6ce
commit e88ded0326

View File

@@ -166,4 +166,8 @@ export default {
2.使用: 动态路径参数 用: 开头
1在main.js 的路由定义中:
{ path: "/a", component: aa },
{ path: "/a", component: aa },
修改为:
{ path: "/a/:参数名", component: 映射的组件名 },
2 在映射的组件中获取传入的动态参数的值