mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Turn off $root listeners in beforeDestroy
This commit is contained in:
parent
dd627535e4
commit
7d00b73530
@ -323,6 +323,7 @@ export default {
|
||||
})
|
||||
},
|
||||
beforeDestroy() {
|
||||
this.$root.$off('changeLanguage')
|
||||
this.editor.destroy()
|
||||
},
|
||||
methods: {
|
||||
|
||||
@ -54,6 +54,9 @@ export default {
|
||||
this.refetchPostComments()
|
||||
})
|
||||
},
|
||||
beforeDestroy() {
|
||||
this.$root.$off('refetchPostComments')
|
||||
},
|
||||
methods: {
|
||||
refetchPostComments() {
|
||||
if (this.$apollo.queries.Post) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user