mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-04-26 09:20:18 +08:00
feat: 更新搜索逻辑
现在更换app类别时将默认清空搜索。
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user