mirror of
https://github.com/zimplexing/OrionTV.git
synced 2026-02-04 03:36:29 +08:00
fix: ensure data is refreshed for all categories by calling fetchInitialData unconditionally
This commit is contained in:
@@ -259,10 +259,7 @@ const useHomeStore = create<HomeState>((set, get) => ({
|
|||||||
return {};
|
return {};
|
||||||
});
|
});
|
||||||
|
|
||||||
// 如果当前是最近播放分类,强制刷新数据
|
get().fetchInitialData();
|
||||||
if (get().selectedCategory.type === "record") {
|
|
||||||
get().fetchInitialData();
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user