修改bug

main
ihzero 2024-05-05 21:24:17 +08:00
parent f03bf754fa
commit 1decf667ab
1 changed files with 4 additions and 4 deletions

View File

@ -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