feat: 日期标签删除重置内容

This commit is contained in:
zdl
2025-10-27 10:51:19 +08:00
parent aacbe5c31c
commit b5cdceb92b

View File

@@ -486,10 +486,8 @@ const UnifiedSearchBox = ({
} else if (key === 'date_range') {
// 清除日期范围
setDateRange(null);
setTimeout(() => {
const params = buildFilterParams();
triggerSearch(params);
}, 50);
const params = buildFilterParams({ date_range: '' });
triggerSearch(params);
} else if (key === 'importance') {
// 重置重要性为默认值
setImportance('all');