fix: datetimerange over 7 days

This commit is contained in:
yangsy
2025-10-10 14:07:42 +08:00
parent 849485f5b1
commit ccdcbfd103
9 changed files with 129 additions and 9 deletions

View File

@@ -51,7 +51,7 @@ const resetSearchFields = () => {
searchFields.alarmDate = [dayjs().startOf('date').subtract(1, 'week').valueOf(), dayjs().endOf('date').valueOf()];
};
const onDateChange = (value: [number, number] | null) => {
if (!value || value.length !== 2) {
if (!value) {
return;
}
const [start, end] = value;