remove clip event listener before destroy
This commit is contained in:
parent
3d2bb9170d
commit
f2c0fd08e3
@ -51,7 +51,8 @@ export default {
|
||||
computed: mapState([ 'user' ]),
|
||||
data: function () {
|
||||
return {
|
||||
links: []
|
||||
links: [],
|
||||
clip: null
|
||||
}
|
||||
},
|
||||
async created () {
|
||||
@ -73,6 +74,9 @@ export default {
|
||||
this.$showSuccess(this.$t('success.linkCopied'))
|
||||
})
|
||||
},
|
||||
beforeDestroy () {
|
||||
this.clip.destroy()
|
||||
},
|
||||
methods: {
|
||||
deleteLink: async function (event, link) {
|
||||
event.preventDefault()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user