From b5cdceb92bc27f17c8933d1ee395023568881a35 Mon Sep 17 00:00:00 2001 From: zdl <3489966805@qq.com> Date: Mon, 27 Oct 2025 10:51:19 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=97=A5=E6=9C=9F=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E9=87=8D=E7=BD=AE=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Community/components/UnifiedSearchBox.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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');