From 7736a631d3b13b10557e3f6f867a2b99964550c4 Mon Sep 17 00:00:00 2001 From: z_yu <1534695664@qq.com> Date: Mon, 19 Sep 2022 09:18:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E5=B1=8F=E6=95=B0=E5=AD=97=E6=94=B9?= =?UTF-8?q?=E5=8F=98=E5=A4=AA=E5=BF=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/environmentalScreen/module/numFlip.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/environmentalScreen/module/numFlip.vue b/src/views/environmentalScreen/module/numFlip.vue index 690e138..9136aba 100644 --- a/src/views/environmentalScreen/module/numFlip.vue +++ b/src/views/environmentalScreen/module/numFlip.vue @@ -35,6 +35,9 @@ export default { this.start() }) }, + beforeDestroy() { + clearInterval(this.timer) + }, methods: { start() { // let strHtml = '' @@ -51,7 +54,7 @@ export default { // _this.toOrderNum('123456') _this.toOrderNum(this.chartnum) _this.setNumberTransform() - }, 1000) + }, 1000 * 10) }, toOrderNum(num) { num = num.toString() // 数字变成字符串