migration: vue3 OPTIONS_BEFORE_DESTROY

This commit is contained in:
axolotle 2024-03-11 14:43:18 +01:00
parent 20e80765a3
commit 68d5c6baeb
2 changed files with 2 additions and 2 deletions

View file

@ -79,7 +79,7 @@ export default {
) )
}, },
beforeDestroy() { beforeUnmount() {
window.removeEventListener('scroll', this.onScroll) window.removeEventListener('scroll', this.onScroll)
this.$refs.feed.removeEventListener('keydown', this.onKeydown) this.$refs.feed.removeEventListener('keydown', this.onKeydown)
}, },

View file

@ -70,7 +70,7 @@ export default {
this.observer.observe(this.$el) this.observer.observe(this.$el)
}, },
beforeDestroy() { beforeUnmount() {
this.observer.disconnect() this.observer.disconnect()
}, },
} }