perf: only store the ForYou tab to reduce performance

This commit is contained in:
Hakadao
2024-01-30 00:09:29 +08:00
parent 0a064e576b
commit a4a742206c

View File

@@ -154,7 +154,7 @@ onUnmounted(() => {
</header>
<Transition name="page-fade">
<KeepAlive>
<KeepAlive include="ForYou">
<Component :is="pages[activatedPage]" :key="activatedPage" />
</KeepAlive>
</Transition>