From 10bfbbbf8eb4ade51427ccee3506c1009053bb44 Mon Sep 17 00:00:00 2001 From: zimplexing Date: Tue, 29 Jul 2025 19:15:57 +0800 Subject: [PATCH] fix: ensure data is refreshed for all categories by calling fetchInitialData unconditionally --- stores/homeStore.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/stores/homeStore.ts b/stores/homeStore.ts index abe7642..3939e90 100644 --- a/stores/homeStore.ts +++ b/stores/homeStore.ts @@ -259,10 +259,7 @@ const useHomeStore = create((set, get) => ({ return {}; }); - // 如果当前是最近播放分类,强制刷新数据 - if (get().selectedCategory.type === "record") { - get().fetchInitialData(); - } + get().fetchInitialData(); }, }));