Commit 8bac3f864c05bfce4c2eb57467359dd9b6464ea0

Authored by Stephen Ma
Committed by GitHub
1 parent 17d9922b

update menu.vue updateOpenKeys methods

修复 on-open-change事件返回的当前展开的 Submenu 的 name 值数组不正确的问题
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/components/menu/menu.vue
@@ -91,8 +91,8 @@ @@ -91,8 +91,8 @@
91 let i = names.indexOf(item.name); 91 let i = names.indexOf(item.name);
92 if (i >= 0) names.splice(i, 1); 92 if (i >= 0) names.splice(i, 1);
93 }); 93 });
94 - names.push(name);  
95 } 94 }
  95 + names.push(name);
96 } 96 }
97 this.openedNames = names; 97 this.openedNames = names;
98 this.$emit('on-open-change', this.openedNames); 98 this.$emit('on-open-change', this.openedNames);