mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-04-06 03:57:53 +08:00
Merge e2b8231b352b970d811097019bd69f80c0bd3bca into 6858a9ad67483025f6a9432a926beb9327037be3
This commit is contained in:
commit
9d6e45dbbc
@ -62,8 +62,12 @@ export default {
|
||||
if (item.hidden) {
|
||||
return false
|
||||
} else {
|
||||
// Recursive children, determine whether multi-layer submenus need to be hidden.
|
||||
if (item.hidden) {
|
||||
return this.hasOneShowingChild(item.children, item)
|
||||
}
|
||||
// Temp set(will be used if only has one showing child)
|
||||
this.onlyOneChild = item
|
||||
this.onlyOneChild = item
|
||||
return true
|
||||
}
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user