修复菜单展示下级只有一个隐藏菜单时候的交互错误
This commit is contained in:
@@ -14,7 +14,7 @@ export default {
|
||||
name: 'AsideComponent',
|
||||
computed: {
|
||||
menuComponent() {
|
||||
if (this.routerInfo.children.length) {
|
||||
if (this.routerInfo.children.filter(item=>!item.hidden).length) {
|
||||
return 'AsyncSubmenu'
|
||||
} else {
|
||||
return 'MenuItem'
|
||||
|
||||
Reference in New Issue
Block a user