perf[TagsView]: refine code

This commit is contained in:
Pan 2019-03-04 11:43:14 +08:00
parent 9a5827ca8a
commit 6d9ac37662
1 changed files with 3 additions and 2 deletions

View File

@ -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 }
})