diff --git a/src/views/Community/components/UnifiedSearchBox.js b/src/views/Community/components/UnifiedSearchBox.js index 45dfa04c..0445993c 100644 --- a/src/views/Community/components/UnifiedSearchBox.js +++ b/src/views/Community/components/UnifiedSearchBox.js @@ -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');