reactor:refine code&&demo
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user