From 7e1f85c0588998a44d60bb390f5415d2c173f367 Mon Sep 17 00:00:00 2001 From: shenmo Date: Sun, 15 Mar 2026 14:47:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=87=E6=8D=A2=E9=A1=B5?= =?UTF-8?q?=E7=AD=BE=E6=97=B6=E4=BC=9A=E6=B8=85=E7=A9=BA=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E6=A1=86=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 1 - src/components/AppHeader.vue | 7 ------- 2 files changed, 8 deletions(-) diff --git a/src/App.vue b/src/App.vue index 6646f44b..0555d3bd 100644 --- a/src/App.vue +++ b/src/App.vue @@ -342,7 +342,6 @@ const toggleTheme = () => { const selectCategory = (category: string) => { activeCategory.value = category; - searchQuery.value = ""; isSidebarOpen.value = false; if ( category === "home" && diff --git a/src/components/AppHeader.vue b/src/components/AppHeader.vue index 27503536..77d47795 100644 --- a/src/components/AppHeader.vue +++ b/src/components/AppHeader.vue @@ -78,11 +78,4 @@ watch( localSearchQuery.value = newVal || ""; }, ); - -watch( - () => props.activeCategory, - () => { - localSearchQuery.value = ""; - }, -);