修复菜单展示下级只有一个隐藏菜单时候的交互错误

This commit is contained in:
pixel
2020-04-20 12:10:50 +08:00
parent 645d0fd842
commit 75035b9038
2 changed files with 2 additions and 2 deletions
@@ -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'