Skip to content

Commit

Permalink
[Bug修复](master): 修复日期控件
Browse files Browse the repository at this point in the history
修复点击往前一天后出现往前两天的问题
  • Loading branch information
elunez committed May 23, 2022
1 parent 7adcabd commit 836b65d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/shortcuts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
Expand Down

0 comments on commit 836b65d

Please sign in to comment.