From f2c0fd08e350c321abc52b82f4cc6214764268fd Mon Sep 17 00:00:00 2001 From: Weidi Deng Date: Fri, 11 Dec 2020 10:46:02 +0800 Subject: [PATCH] remove clip event listener before destroy --- frontend/src/views/settings/Shares.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/settings/Shares.vue b/frontend/src/views/settings/Shares.vue index 1085d90e..04d62c4e 100644 --- a/frontend/src/views/settings/Shares.vue +++ b/frontend/src/views/settings/Shares.vue @@ -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()