reactor:refine code&&demo

This commit is contained in:
Pan
2017-11-02 17:58:35 +08:00
parent ac5d087ea4
commit bb1d939a94
18 changed files with 138 additions and 139 deletions

View File

@@ -25,7 +25,7 @@ export default {
return
}
const first = matched[0]
if (first && (first.name !== '首页' || first.path !== '')) {
if (first && first.name !== 'dashboard') {
matched = [{ path: '/', meta: { title: '首页' }}].concat(matched)
}
this.levelList = matched