fix(vimp-log-page): resetSearchFields

This commit is contained in:
yangsy
2025-11-18 17:38:13 +08:00
parent 70e3063b40
commit 799a5af857

View File

@@ -76,6 +76,7 @@ const searchFields = reactive({
const resetSearchFields = () => {
searchFields.stationCode = stationList.value.find((station) => station.online)?.code;
searchFields.logType_in = [];
searchFields.createdTime = [dayjs().startOf('date').subtract(1, 'week').format('YYYY-MM-DD HH:mm:ss'), dayjs().endOf('date').format('YYYY-MM-DD HH:mm:ss')];
};
const getExtraFields = () => {
const logType_in = searchFields.logType_in.length > 0 ? [...searchFields.logType_in] : undefined;