From 9e3e52205747ee2f1449157966b27050cc000c42 Mon Sep 17 00:00:00 2001 From: theluyuan <1162963624@qq.com> Date: Mon, 7 Dec 2020 09:08:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E5=91=A8=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/date.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/date.ts b/src/utils/date.ts index 272f8e6..3f5d997 100644 --- a/src/utils/date.ts +++ b/src/utils/date.ts @@ -93,8 +93,8 @@ export function getweek(time: string, id: string,zhou?: number){ const day = now.date() // 当前天 zhou = now.day(); // 当前周几 const year = now.year() - const startd = now.day(1).date(); - const start = `${year}-${yue}-${startd}` + const startd = now.day(0).date(); + const start = `${year}-${yue}-${startd > 9 ? startd : '0' + startd}` interface Date{ day: string; list?: Array;