Skip to content

Commit 836b65d

Browse files
committed
[Bug修复](master): 修复日期控件
修复点击往前一天后出现往前两天的问题
1 parent 7adcabd commit 836b65d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/shortcuts.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ export const calendarBaseShortcuts = [{
4747
export const calendarMoveShortcuts = [{
4848
text: '‹ 往前一天 ',
4949
onClick(picker) {
50-
let startTime = new Date(new Date().daysAgo(1).setHours(0, 0, 0))
51-
let endTime = new Date(new Date().daysAgo(1).setHours(23, 59, 59))
50+
let startTime = new Date(new Date().setHours(0, 0, 0))
51+
let endTime = new Date(new Date().setHours(23, 59, 59))
5252
if (!picker.value) {
5353
picker.value = [startTime, endTime]
5454
}

0 commit comments

Comments
 (0)