diff --git a/src/layout/components/TagsView/index.vue b/src/layout/components/TagsView/index.vue index d2a56e70..3e992f6a 100644 --- a/src/layout/components/TagsView/index.vue +++ b/src/layout/components/TagsView/index.vue @@ -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] } diff --git a/src/router/modules/nested.js b/src/router/modules/nested.js index 48033ed1..1340b219 100644 --- a/src/router/modules/nested.js +++ b/src/router/modules/nested.js @@ -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 } } ] },