feat:add tree demo

This commit is contained in:
Pan
2017-11-24 17:08:30 +08:00
committed by 花裤衩
parent 868673778e
commit 37b6253e14
5 changed files with 94 additions and 15 deletions

View File

@@ -24,7 +24,7 @@ export default {
let matched = this.$route.matched.filter(item => item.name)
const first = matched[0]
if (first && first.name !== 'dashboard') {
matched = [{ path: '/dashboard', meta: { title: 'dashboard' }}].concat(matched)
matched = [{ path: '/dashboard', meta: { title: 'Dashboard' }}].concat(matched)
}
this.levelList = matched
}