34327f7f by 任超

style:菜单

1 parent 3370b379
...@@ -63,9 +63,8 @@ export default { ...@@ -63,9 +63,8 @@ export default {
63 return true 63 return true
64 } 64 }
65 }) 65 })
66 66 // // When there is only one child router, the child router is displayed by default
67 // When there is only one child router, the child router is displayed by default 67 if (showingChildren.length === 1 && showingChildren[0].name == 'home') {
68 if (showingChildren.length === 1) {
69 return true 68 return true
70 } 69 }
71 70
...@@ -74,7 +73,6 @@ export default { ...@@ -74,7 +73,6 @@ export default {
74 this.onlyOneChild = { ...parent, path: '', noShowingChildren: true } 73 this.onlyOneChild = { ...parent, path: '', noShowingChildren: true }
75 return true 74 return true
76 } 75 }
77
78 return false 76 return false
79 }, 77 },
80 resolvePath (routePath) { 78 resolvePath (routePath) {
......