更新 AppHeader 和 AppGrid 组件以使用过滤后的应用列表

This commit is contained in:
Elysia
2026-01-17 21:09:06 +08:00
parent 0d16434374
commit 74615a5ce9

View File

@@ -6,9 +6,9 @@
</aside> </aside>
<main class="main"> <main class="main">
<AppHeader :search-query="searchQuery" :apps-count="apps.length" @update-search="handleSearchInput" <AppHeader :search-query="searchQuery" :apps-count="filteredApps.length" @update-search="handleSearchInput"
@update="handleUpdate" @list="handleList" /> @update="handleUpdate" @list="handleList" />
<AppGrid :apps="apps" :loading="loading" @open-detail="openDetail" /> <AppGrid :apps="filteredApps" :loading="loading" @open-detail="openDetail" />
</main> </main>
<AppDetailModal :show="showModal" :app="currentApp" :screenshots="screenshots" @close="closeDetail" <AppDetailModal :show="showModal" :app="currentApp" :screenshots="screenshots" @close="closeDetail"