From 6346d043945748f291d833797dc315371e474e41 Mon Sep 17 00:00:00 2001 From: MTrun <1262327911@qq.com> Date: Mon, 8 Nov 2021 12:56:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E7=94=9F=E5=91=BD?= =?UTF-8?q?=E5=91=A8=E6=9C=9F=E6=8B=BC=E5=86=99=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/utils/drawMixin.js | 2 +- src/views/index.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 02845fb..4d1f6a1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "big-screen-vue-datav", - "version": "1.5.0", + "version": "1.5.1", "private": true, "scripts": { "serve": "vue-cli-service serve", diff --git a/src/utils/drawMixin.js b/src/utils/drawMixin.js index f5aee1d..f928d87 100644 --- a/src/utils/drawMixin.js +++ b/src/utils/drawMixin.js @@ -24,7 +24,7 @@ export default { this.calcRate() window.addEventListener('resize', this.resize) }, - unMounted () { + beforeDestroy () { window.removeEventListener('resize', this.resize) }, methods: { diff --git a/src/views/index.vue b/src/views/index.vue index 9c95e8c..1511b31 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -127,7 +127,7 @@ export default { this.timeFn() this.cancelLoading() }, - unMounted() { + beforeDestroy () { clearInterval(this.timing) }, methods: {