feat: 更新搜索逻辑

现在更换app类别时将默认清空搜索。
This commit is contained in:
Elysia
2026-02-12 20:11:54 +08:00
parent c3ae477497
commit d5266c6af8
4 changed files with 17 additions and 31 deletions

View File

@@ -18,6 +18,7 @@
<main class="flex-1 px-4 py-6 lg:px-10">
<AppHeader
:search-query="searchQuery"
:active-category="activeCategory"
:apps-count="filteredApps.length"
@update-search="handleSearchInput"
@update="handleUpdate"
@@ -233,6 +234,7 @@ const toggleTheme = () => {
const selectCategory = (category: string) => {
activeCategory.value = category;
searchQuery.value = "";
};
const openDetail = (app: App) => {