fix: Use bus.$off to remove listeners on destroy (#3478)

This commit is contained in:
Pranav Raj S
2021-11-29 21:15:36 -08:00
committed by GitHub
parent 86dfdfb9ab
commit 0899f62912
8 changed files with 44 additions and 24 deletions

View File

@@ -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);
},
},
};