update menu.vue updateOpenKeys methods

修复 on-open-change事件返回的当前展开的 Submenu 的 name 值数组不正确的问题
This commit is contained in:
Stephen Ma 2018-05-06 16:01:04 +08:00 committed by GitHub
parent 17d9922b08
commit 8bac3f864c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);