Optimize Menu initialization animation

This commit is contained in:
梁灏 2019-04-10 10:43:18 +08:00
parent 37f4b7a879
commit e098ce3f8a

View file

@ -133,9 +133,9 @@
}
},
mounted () {
this.updateActiveName();
this.openedNames = [...this.openNames];
this.updateOpened();
this.$nextTick(() => this.updateActiveName());
this.$on('on-menu-item-select', (name) => {
this.currentActiveName = name;
this.$emit('on-select', name);