vue 动态生成路由 二级路由 可以跳转 三极路由就有问题
这是组装好的路由数组 但是三极路由怎么也无法跳转
routes = [ { //一级路由
component: {name: 'Header', watch: {…}, methods: {…}, data: ƒ, created: ƒ, …}
name: "HelloWorld"
path: "/"
redirect: {name: 'indexView'}
children: [
{ //二级路由
component: ƒ component()
meta: Object
name: "workbench"
path: "workbench"
},
{ //二级路由
component: ƒ component()
meta: Object
name: "indexView"
path: "indexView"
},
{ //二级路由
meta: Object
name: ""
path: ""
children: [
{ //三级路由
component: ƒ component()
meta: Object
name: "importantMap"
path: "importantMap"
}
]
},
//省略
]
}
]
以上是 vue 动态生成路由 二级路由 可以跳转 三极路由就有问题 的全部内容, 来源链接: utcz.com/p/936908.html