fix(查询组件): 时间范围1号选择月初至昨天(当月)无法保存 #18178

This commit is contained in:
dataeaseShu
2026-04-03 16:46:40 +08:00
committed by dataeaseShu
parent 2e2e3da1a2
commit 42be4bd1de

View File

@@ -74,7 +74,7 @@ function getCustomRange(relativeToCurrentRange: string): [Date, Date] {
const sm = new Date(dayjs().startOf('month').format('YYYY/MM/DD HH:mm:ss'))
const ld = getLastEnd('day')
if (+sm > +ld) {
return [sm, sm]
return [sm, getThisEnd('day')]
}
return [sm, ld]
case 'today':