Use unmounted instead.

This commit is contained in:
FireMasterK 2021-09-06 02:31:26 +05:30
parent 278eb5134b
commit c372bd3fa7

View file

@ -179,7 +179,7 @@ export default {
this.active = false; this.active = false;
window.removeEventListener("scroll", this.handleScroll); window.removeEventListener("scroll", this.handleScroll);
}, },
beforeUnmount() { unmounted() {
window.removeEventListener("scroll", this.handleScroll); window.removeEventListener("scroll", this.handleScroll);
}, },
methods: { methods: {