feat: 首页更新
This commit is contained in:
@@ -6,4 +6,3 @@ export { default as authService } from './authService';
|
||||
export { default as userService } from './userService';
|
||||
export { default as tenantService } from './tenantService';
|
||||
export { default as gameService } from './gameService';
|
||||
|
||||
|
||||
@@ -3,14 +3,7 @@
|
||||
* 用于开发和测试,模拟真实 API 响应
|
||||
*/
|
||||
|
||||
import type {
|
||||
Banner,
|
||||
Notice,
|
||||
GameCategory,
|
||||
Game,
|
||||
HighPrizeGame,
|
||||
NavItem,
|
||||
} from '@/types/home';
|
||||
import type { Banner, Notice, GameCategory, Game, HighPrizeGame, NavItem } from '@/types/home';
|
||||
|
||||
/**
|
||||
* Mock 轮播图数据
|
||||
@@ -230,4 +223,3 @@ export const getMockGamesByCategory = (categoryId: string | number) => {
|
||||
}
|
||||
return mockGames.filter((game) => game.big_type === categoryId);
|
||||
};
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ class TenantService {
|
||||
getPlatformData(params?: Record<string, any>): Promise<ApiResponse> {
|
||||
const data = {
|
||||
language: '0',
|
||||
...params
|
||||
...params,
|
||||
};
|
||||
return request.post('/v2', data, {
|
||||
headers: {
|
||||
|
||||
Reference in New Issue
Block a user