diff --git a/src/views/layout/components/TagsView.vue b/src/views/layout/components/TagsView.vue index 7b7be8f7..66059816 100644 --- a/src/views/layout/components/TagsView.vue +++ b/src/views/layout/components/TagsView.vue @@ -75,9 +75,10 @@ export default { let tags = [] routes.forEach(route => { if (route.meta && route.meta.affix) { + const tagPath = path.resolve(basePath, route.path) tags.push({ - fullPath: path.resolve(basePath, route.path), - path: path.resolve(basePath, route.path), + fullPath: tagPath, + path: tagPath, name: route.name, meta: { ...route.meta } })