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.

pull/4209/head
caiyaonan 2023-11-29 19:39:54 +08:00
parent 3a59abd3a9
commit e2b8231b35
1 changed files with 5 additions and 5 deletions

View File

@ -62,12 +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)
}
// 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
}
})