From 550898168c11e3c46466c92a8ac9de66242e0595 Mon Sep 17 00:00:00 2001 From: Zheng Jie <201507802@qq.com> Date: Sat, 27 Feb 2021 21:31:06 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96](v2.6)?= =?UTF-8?q?=EF=BC=9A=E8=A7=A3=E5=86=B3=E6=97=A5=E6=9C=9F=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=E6=97=A5=E6=9C=9F=E8=AE=A1=E7=AE=97=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?Bug=EF=BC=8C=E4=BF=AE=E5=A4=8D=E6=97=A5=E6=9C=9F=E6=8E=A7?= =?UTF-8?q?=E4=BB=B6=E7=82=B9=E5=87=BB=E6=97=A0=E6=95=88Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit close https://github.com/elunez/eladmin/issues/560 --- 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 7a8b1d7..eff6686 100644 --- a/src/utils/shortcuts.js +++ b/src/utils/shortcuts.js @@ -75,7 +75,7 @@ export const calendarMoveShortcuts = [{ let endTime = new Date(new Date().setHours(23, 59, 59)) if (!picker.value) { picker.value = [startTime.daysAgo(new Date().getDay()), - startTime.daysAgo(new Date().getDay() + 1)] + endTime.daysAgo(new Date().getDay() + 1)] } else { picker.value = [picker.value[0].daysAgo(picker.value[0].getDay()), picker.value[1].daysAgo(picker.value[1].getDay() + 1)] @@ -91,7 +91,7 @@ export const calendarMoveShortcuts = [{ let endTime = new Date(new Date().setHours(23, 59, 59)) if (!picker.value) { picker.value = [startTime.daysAgo(new Date().getDay() - 7), - startTime.daysAgo(new Date().getDay() - 6)] + endTime.daysAgo(new Date().getDay() - 6)] } else { picker.value = [picker.value[0].daysAgo(picker.value[0].getDay() - 7), picker.value[1].daysAgo(picker.value[1].getDay() - 6)]