mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
migration: vue3 OPTIONS_BEFORE_DESTROY
This commit is contained in:
parent
20e80765a3
commit
68d5c6baeb
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
},
|
},
|
||||||
|
|
|
@ -70,7 +70,7 @@ export default {
|
||||||
this.observer.observe(this.$el)
|
this.observer.observe(this.$el)
|
||||||
},
|
},
|
||||||
|
|
||||||
beforeDestroy() {
|
beforeUnmount() {
|
||||||
this.observer.disconnect()
|
this.observer.disconnect()
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue