34327f7f by 任超

style:菜单

1 parent 3370b379
......@@ -63,9 +63,8 @@ export default {
return true
}
})
// When there is only one child router, the child router is displayed by default
if (showingChildren.length === 1) {
// // When there is only one child router, the child router is displayed by default
if (showingChildren.length === 1 && showingChildren[0].name == 'home') {
return true
}
......@@ -74,7 +73,6 @@ export default {
this.onlyOneChild = { ...parent, path: '', noShowingChildren: true }
return true
}
return false
},
resolvePath (routePath) {
......