mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-11-30 03:07:36 +08:00
Menu: delay addItem so it is after old instances's remoteItem when re-render (#11036)
This commit is contained in:
parent
7409be8ce1
commit
897f20683f
@ -97,10 +97,10 @@
|
||||
if (!this.disabled) {
|
||||
this.dispatch('ElMenu', 'item-click', this);
|
||||
this.$emit('click', this);
|
||||
};
|
||||
}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
mounted() {
|
||||
this.parentMenu.addItem(this);
|
||||
this.rootMenu.addItem(this);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user