From 7842ab167e365f28eba2e78a8f7fe0acaec4e4ee Mon Sep 17 00:00:00 2001 From: zsk <710162063@qq.com> Date: Thu, 31 Jul 2025 16:03:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=AE=9A=E6=97=B6=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/App.vue b/App.vue index 0f6f4be..2774ed1 100644 --- a/App.vue +++ b/App.vue @@ -69,7 +69,13 @@ export default { // that.initWyyx() } }, - onHide: function () {}, + onHide: function () { + if (this.globalData.timer) { + clearInterval(this.globalData.timer); + this.globalData.timer = null; + console.log("定时任务已清除"); + } + }, methods: { initWyyx() { let that = this;