fix: 选择今天00:00:00-23:59:59
All checks were successful
构建并部署前端到测试环境 / deploy (push) Successful in 55s

This commit is contained in:
luo
2026-09-29 11:36:41 +08:00
parent 7a74bec337
commit f896cad34f
3 changed files with 13 additions and 4 deletions

View File

@@ -190,8 +190,13 @@
{
text: '今天',
value: () => {
const today = new Date()
return [today, today] as [Date, Date]
const start = new Date()
const end = new Date()
if (type === 'datetimerange') {
start.setHours(0, 0, 0, 0)
end.setHours(23, 59, 59, 0)
}
return [start, end] as [Date, Date]
}
},
{