From 9953c61d622959779c0d7e5023686ec5f999eebc Mon Sep 17 00:00:00 2001 From: lyswhut Date: Sun, 3 Jan 2021 14:07:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AF=B9tips=E5=AE=9E?= =?UTF-8?q?=E4=BE=8B=E7=9A=84=E9=94=80=E6=AF=81=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/plugins/Tips/Tips.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/renderer/plugins/Tips/Tips.vue b/src/renderer/plugins/Tips/Tips.vue index b07fad95..dd1e7eea 100644 --- a/src/renderer/plugins/Tips/Tips.vue +++ b/src/renderer/plugins/Tips/Tips.vue @@ -27,9 +27,13 @@ export default { }) }, }, + beforeDestroy() { + const el = this.$el + el.parentNode.removeChild(el) + }, methods: { afterLeave(el, done) { - el.parentNode.removeChild(el) + this.$destroy() }, handleGetOffsetXY(left, top) { const tipsWidth = this.$refs.dom_tips.clientWidth