diff --git a/src/components/WatchVideo.vue b/src/components/WatchVideo.vue index 6c331648..1a048096 100644 --- a/src/components/WatchVideo.vue +++ b/src/components/WatchVideo.vue @@ -179,7 +179,7 @@ export default { this.active = false; window.removeEventListener("scroll", this.handleScroll); }, - beforeUnmount() { + unmounted() { window.removeEventListener("scroll", this.handleScroll); }, methods: {