mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-04-06 03:57:53 +08:00
Fixed an issue where the hidden judgment of menus above the second level is invalid, resulting in blank spaces and arrow icons appearing in the menu.
This commit is contained in:
parent
3a59abd3a9
commit
e2b8231b35
@ -62,12 +62,12 @@ export default {
|
|||||||
if (item.hidden) {
|
if (item.hidden) {
|
||||||
return false
|
return false
|
||||||
} else {
|
} else {
|
||||||
// Recursive children, determine whether multi-layer submenus need to be hidden.
|
// Recursive children, determine whether multi-layer submenus need to be hidden.
|
||||||
if (item.hidden) {
|
if (item.hidden) {
|
||||||
return this.hasOneShowingChild(item.children, item)
|
return this.hasOneShowingChild(item.children, item)
|
||||||
}
|
}
|
||||||
// Temp set(will be used if only has one showing child)
|
// Temp set(will be used if only has one showing child)
|
||||||
this.onlyOneChild = item
|
this.onlyOneChild = item
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user