daterange选择上周异常

This commit is contained in:
rickcole 2019-05-27 16:56:46 +08:00
parent 1cf2dec96b
commit e5771684c9

View File

@ -98,15 +98,13 @@ const availableRanges: {[propName: string]: any} = {
label: '上周',
startDate: (now: moment.Moment) => {
return now
.add(-1, 'days')
.startOf('week')
.add(-1, 'weeks');
},
endDate: (now: moment.Moment) => {
return now
.add(-1, 'days')
.startOf('week')
.add(-1, 'day')
.add(-1, 'days')
.endOf('day');
},
},