update menu.vue updateOpenKeys methods
修复 on-open-change事件返回的当前展开的 Submenu 的 name 值数组不正确的问题
This commit is contained in:
parent
17d9922b08
commit
8bac3f864c
1 changed files with 1 additions and 1 deletions
|
@ -91,8 +91,8 @@
|
|||
let i = names.indexOf(item.name);
|
||||
if (i >= 0) names.splice(i, 1);
|
||||
});
|
||||
names.push(name);
|
||||
}
|
||||
names.push(name);
|
||||
}
|
||||
this.openedNames = names;
|
||||
this.$emit('on-open-change', this.openedNames);
|
||||
|
|
Loading…
Add table
Reference in a new issue