From 43f9e432cc3a93e2d09d4e6796e0a843f1f1b5dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9B=AE=E6=A3=83?= Date: Sat, 5 Apr 2025 19:30:53 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20=E9=87=8D=E6=9E=84=E6=97=A5?= =?UTF-8?q?=E6=9C=9F=E5=88=87=E6=8D=A2=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/pageHome/ph-comp-calendar.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/pageHome/ph-comp-calendar.vue b/src/components/pageHome/ph-comp-calendar.vue index ed04bfc6..67f98c6a 100644 --- a/src/components/pageHome/ph-comp-calendar.vue +++ b/src/components/pageHome/ph-comp-calendar.vue @@ -14,7 +14,7 @@ rounded class="tc-btn" :class="{ selected: text.week === btnNow, today: text.week === weekNow }" - @click="btnNow = text.week" + @click="switchDay(text.week)" > {{ text.text }} @@ -87,6 +87,11 @@ onMounted(() => { emits("success"); }); +function switchDay(day: number): void { + btnNow.value = day; + page.value = 1; +} + function switchType(): void { selectedType.value = selectedType.value === "character" ? "weapon" : "character"; page.value = 1;