From b5e23dda59f63e0d75097e7a4790a77e41301d4f Mon Sep 17 00:00:00 2001 From: modendeveloper Date: Tue, 17 Sep 2024 21:05:01 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20=E8=B6=B3=E8=BF=B9=E6=97=A5=E6=9C=9F?= =?UTF-8?q?=E6=98=9F=E6=9C=9F=E6=97=A5=E5=BC=80=E5=A7=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/user/History/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/user/History/index.vue b/pages/user/History/index.vue index 1697e24..99343b1 100644 --- a/pages/user/History/index.vue +++ b/pages/user/History/index.vue @@ -105,7 +105,7 @@ export default { const dayOfWeek = now.getDay() // 当前日 const numDate = now.getDate() - const numDaysToMonday = dayOfWeek ? dayOfWeek - 1 : 6 + const numDaysToMonday = dayOfWeek - 1 > -1 ? dayOfWeek : 0 // 得到本周周一的日期 const monday = new Date(now)