From fbca24d9af4121af349a6ed7bf9005ffd506c698 Mon Sep 17 00:00:00 2001 From: weichengwu Date: Wed, 26 Nov 2025 23:55:59 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=93=E5=A9=9A=E8=AF=81=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/home/index.vue | 766 +++++++++++++++++++++------------------ 1 file changed, 409 insertions(+), 357 deletions(-) diff --git a/src/pages/home/index.vue b/src/pages/home/index.vue index cada00d..f211154 100644 --- a/src/pages/home/index.vue +++ b/src/pages/home/index.vue @@ -1,80 +1,80 @@ - + + +// 组件卸载时清理定时器 +import { onUnmounted } from 'vue' +onUnmounted(() => { + if (countdownTimer) { + clearInterval(countdownTimer) + } +}) +