fixed Menu bug in 2.5.16

This commit is contained in:
梁灏 2018-03-14 11:03:29 +08:00
parent 2e018fc7b5
commit b71a171d36
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ export default {
},
computed: {
hasParentSubmenu () {
return findComponentUpward(this, 'Submenu');
return !!findComponentUpward(this, 'Submenu');
},
parentSubmenuNum () {
return findComponentsUpward(this, 'Submenu').length;