mirror of https://github.com/ElemeFE/element
Menu: delay addItem so it is after old instances's remoteItem when re-render (#11036)
parent
7409be8ce1
commit
897f20683f
|
@ -97,10 +97,10 @@
|
||||||
if (!this.disabled) {
|
if (!this.disabled) {
|
||||||
this.dispatch('ElMenu', 'item-click', this);
|
this.dispatch('ElMenu', 'item-click', this);
|
||||||
this.$emit('click', this);
|
this.$emit('click', this);
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
mounted() {
|
||||||
this.parentMenu.addItem(this);
|
this.parentMenu.addItem(this);
|
||||||
this.rootMenu.addItem(this);
|
this.rootMenu.addItem(this);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue