mirror of
https://github.com/dataease/dataease.git
synced 2026-06-13 09:04:38 +08:00
fix(查询组件): 时间范围1号选择月初至昨天(当月)无法保存 #18178
This commit is contained in:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user