Skip to content

Commit

Permalink
perf[TagsView]: refine code
Browse files Browse the repository at this point in the history
  • Loading branch information
PanJiaChen committed Mar 4, 2019
1 parent aa2eb7d commit 1e06f1d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/views/layout/components/TagsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
})
Expand Down

0 comments on commit 1e06f1d

Please sign in to comment.