perf[TagsView]: refine code

pull/1657/head
Pan 6 years ago
parent aa2eb7d40f
commit 1e06f1da67

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

Loading…
Cancel
Save