update
This commit is contained in:
@@ -167,3 +167,7 @@ export default {
|
|||||||
|
|
||||||
(1)在main.js 的路由定义中:
|
(1)在main.js 的路由定义中:
|
||||||
{ path: "/a", component: aa },
|
{ path: "/a", component: aa },
|
||||||
|
修改为:
|
||||||
|
{ path: "/a/:参数名", component: 映射的组件名 },
|
||||||
|
(2) 在映射的组件中获取传入的动态参数的值
|
||||||
|
在
|
||||||
Reference in New Issue
Block a user