mirror of https://github.com/ElemeFE/element
parent
f75ba78cd4
commit
6bb49b9590
|
@ -153,8 +153,8 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
updateActiveIndex() {
|
updateActiveIndex(val) {
|
||||||
const item = this.items[this.defaultActive];
|
const item = this.items[val] || this.items[this.activeIndex] || this.items[this.defaultActive];
|
||||||
if (item) {
|
if (item) {
|
||||||
this.activeIndex = item.index;
|
this.activeIndex = item.index;
|
||||||
this.initOpenedMenu();
|
this.initOpenedMenu();
|
||||||
|
|
Loading…
Reference in New Issue