feat: 首页更新
This commit is contained in:
@@ -224,7 +224,7 @@ export const getMockHomePageData = () => {
|
||||
/**
|
||||
* 获取 Mock 游戏列表(支持分类过滤)
|
||||
*/
|
||||
export const getMockGamesByCategory = (categoryId: number) => {
|
||||
export const getMockGamesByCategory = (categoryId: string | number) => {
|
||||
if (categoryId === 0) {
|
||||
return mockGames; // 推荐分类返回所有游戏
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user