fix: 二级以上路由添加affix只保存后两级的path导致打开失败
This commit is contained in:
parent
33a93a12b4
commit
4b6f91b7e0
|
@ -85,7 +85,7 @@ export default {
|
|||
})
|
||||
}
|
||||
if (route.children) {
|
||||
const tempTags = this.filterAffixTags(route.children, route.path)
|
||||
const tempTags = this.filterAffixTags(route.children, path.resolve(basePath, route.path))
|
||||
if (tempTags.length >= 1) {
|
||||
tags = [...tags, ...tempTags]
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ const nestedRouter = {
|
|||
path: 'menu1-2-2',
|
||||
component: () => import('@/views/nested/menu1/menu1-2/menu1-2-2'),
|
||||
name: 'Menu1-2-2',
|
||||
meta: { title: 'Menu 1-2-2' }
|
||||
meta: { title: 'Menu 1-2-2', affix: true }
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue