pull/4209/merge
caiyaonan 2024-11-28 00:30:59 +00:00 committed by GitHub
commit 9d6e45dbbc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -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
}
})