Commit 6bb49b95 authored by Harlan's avatar Harlan Committed by Jikkai Xiao

Menu: save menu state when change collapse and expand menu(#10622) (#12178)

parent f75ba78c
......@@ -153,8 +153,8 @@
}
},
methods: {
updateActiveIndex() {
const item = this.items[this.defaultActive];
updateActiveIndex(val) {
const item = this.items[val] || this.items[this.activeIndex] || this.items[this.defaultActive];
if (item) {
this.activeIndex = item.index;
this.initOpenedMenu();
......
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