From 41904464e0138a9af3dfe75b09ec0c001f46295a Mon Sep 17 00:00:00 2001 From: rickcole Date: Thu, 9 Apr 2020 19:47:42 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E6=9C=AC=E5=91=A8=E4=B8=80=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DatePicker.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/DatePicker.tsx b/src/components/DatePicker.tsx index ba6a6456..16e4531d 100644 --- a/src/components/DatePicker.tsx +++ b/src/components/DatePicker.tsx @@ -40,7 +40,7 @@ const availableShortcuts: {[propName: string]: any} = { thisweek: { label: '本周一', date: (now: moment.Moment) => { - return now.startOf('week').add(-1, 'weeks'); + return now.startOf('week').startOf('day'); } },