mirror of https://github.com/ElemeFE/element
parent
f75ba78cd4
commit
6bb49b9590
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue