修改bug
parent
f03bf754fa
commit
1decf667ab
|
|
@ -195,10 +195,10 @@ function generateTimeArrayWithLastPeriod() {
|
|||
case '上周':
|
||||
lastPeriodTimeRanges['上周'] = {
|
||||
startDate: dayjs(timeRange.current.startDate)
|
||||
.subtract(2, 'week')
|
||||
.subtract(1, 'week')
|
||||
.toDate(),
|
||||
endDate: dayjs(timeRange.current.endDate)
|
||||
.subtract(2, 'week')
|
||||
.subtract(1, 'week')
|
||||
.toDate(),
|
||||
}
|
||||
break
|
||||
|
|
@ -215,10 +215,10 @@ function generateTimeArrayWithLastPeriod() {
|
|||
case '上月':
|
||||
lastPeriodTimeRanges['上月'] = {
|
||||
startDate: dayjs(timeRange.current.startDate)
|
||||
.subtract(2, 'month')
|
||||
.subtract(1, 'month')
|
||||
.toDate(),
|
||||
endDate: dayjs(timeRange.current.endDate)
|
||||
.subtract(2, 'month')
|
||||
.subtract(1, 'month')
|
||||
.toDate(),
|
||||
}
|
||||
break
|
||||
|
|
|
|||
Loading…
Reference in New Issue