fix: Use bus.$off to remove listeners on destroy (#3478)
This commit is contained in:
parent
86dfdfb9ab
commit
0899f62912
8 changed files with 44 additions and 24 deletions
|
@ -3,10 +3,12 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { BUS_EVENTS } from 'shared/constants/busEvents';
|
||||
|
||||
export default {
|
||||
methods: {
|
||||
onMenuItemClick() {
|
||||
bus.$emit('sidemenu_icon_click');
|
||||
bus.$emit(BUS_EVENTS.TOGGLE_SIDEMENU);
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue