fix(sj_1.1.0_beta1): DatetimeRange起始结束时间默认值颠倒

This commit is contained in:
dhb52 2024-06-16 00:14:36 +08:00
parent 6ea459ef3b
commit e8cc54a4df

View File

@ -42,7 +42,7 @@ watch(
function getDefaultDate(): [number, number] { function getDefaultDate(): [number, number] {
const endOfDayTimestamp = dayjs().endOf('day').valueOf(); const endOfDayTimestamp = dayjs().endOf('day').valueOf();
const startOfDayOneMonthAgoTimestamp = dayjs().subtract(1, 'month').startOf('day').valueOf(); const startOfDayOneMonthAgoTimestamp = dayjs().subtract(1, 'month').startOf('day').valueOf();
return [endOfDayTimestamp, startOfDayOneMonthAgoTimestamp]; return [startOfDayOneMonthAgoTimestamp, endOfDayTimestamp];
} }
function initDefaultDate() { function initDefaultDate() {