fix: ensure data is refreshed for all categories by calling fetchInitialData unconditionally

This commit is contained in:
zimplexing
2025-07-29 19:15:57 +08:00
parent 187a753735
commit 10bfbbbf8e

View File

@@ -259,10 +259,7 @@ const useHomeStore = create<HomeState>((set, get) => ({
return {};
});
// 如果当前是最近播放分类,强制刷新数据
if (get().selectedCategory.type === "record") {
get().fetchInitialData();
}
get().fetchInitialData();
},
}));