Commit 426ce5da authored by baiyaaaaa's avatar baiyaaaaa Committed by GitHub

Merge pull request #456 from QingWei-Li/fix/menu/active

Menu: fix indexPath of undefined
parents d3334476 eb027638
......@@ -46,6 +46,7 @@
watch: {
defaultActive(value) {
this.activeIndex = value;
if (!this.menuItems[value]) return;
let indexPath = this.menuItems[value].indexPath;
this.handleSelect(value, indexPath);
......@@ -97,6 +98,7 @@
},
openActiveItemMenus() {
let index = this.activeIndex;
if (!this.menuItems[index]) return;
if (index && this.mode === 'vertical') {
let indexPath = this.menuItems[index].indexPath;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment