From 836b65dd6accbbbfd302d7f08a3f5047138070da Mon Sep 17 00:00:00 2001 From: Zheng Jie <201507802@qq.com> Date: Mon, 23 May 2022 10:02:56 +0800 Subject: [PATCH] =?UTF-8?q?[Bug=E4=BF=AE=E5=A4=8D](master):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E6=97=A5=E6=9C=9F=E6=8E=A7=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复点击往前一天后出现往前两天的问题 --- src/utils/shortcuts.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/shortcuts.js b/src/utils/shortcuts.js index fc4fc74..b47a4ca 100644 --- a/src/utils/shortcuts.js +++ b/src/utils/shortcuts.js @@ -47,8 +47,8 @@ export const calendarBaseShortcuts = [{ export const calendarMoveShortcuts = [{ text: '‹ 往前一天 ', onClick(picker) { - let startTime = new Date(new Date().daysAgo(1).setHours(0, 0, 0)) - let endTime = new Date(new Date().daysAgo(1).setHours(23, 59, 59)) + let startTime = new Date(new Date().setHours(0, 0, 0)) + let endTime = new Date(new Date().setHours(23, 59, 59)) if (!picker.value) { picker.value = [startTime, endTime] }