Skip to content

Commit 1e06f1d

Browse files
committed
perf[TagsView]: refine code
1 parent aa2eb7d commit 1e06f1d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/views/layout/components/TagsView.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,10 @@ export default {
7575
let tags = []
7676
routes.forEach(route => {
7777
if (route.meta && route.meta.affix) {
78+
const tagPath = path.resolve(basePath, route.path)
7879
tags.push({
79-
fullPath: path.resolve(basePath, route.path),
80-
path: path.resolve(basePath, route.path),
80+
fullPath: tagPath,
81+
path: tagPath,
8182
name: route.name,
8283
meta: { ...route.meta }
8384
})

0 commit comments

Comments
 (0)