修改 球局详情,添加 页面不适用组件
This commit is contained in:
@@ -76,6 +76,7 @@ export interface GameData {
|
||||
max_participants: number;
|
||||
weather: Weather[];
|
||||
user_action_status: UserActionStatus;
|
||||
is_disabled: number;
|
||||
}
|
||||
|
||||
export enum MATCH_STATUS {
|
||||
@@ -107,6 +108,7 @@ class GameDetailService {
|
||||
{ id },
|
||||
{
|
||||
showLoading: false,
|
||||
showToast: false,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
@@ -159,7 +159,7 @@ class HttpService {
|
||||
if (statusCode !== HTTP_STATUS.SUCCESS) {
|
||||
this.handleHttpError(statusCode)
|
||||
reject(new Error(`HTTP Error: ${statusCode}`))
|
||||
return
|
||||
return response.data
|
||||
}
|
||||
|
||||
// 业务状态码检查
|
||||
@@ -175,7 +175,7 @@ class HttpService {
|
||||
url: '/login_pages/index/index'
|
||||
})
|
||||
reject(new Error('用户不存在'))
|
||||
return
|
||||
return response.data
|
||||
}
|
||||
|
||||
|
||||
@@ -187,13 +187,13 @@ class HttpService {
|
||||
} else {
|
||||
reject(response.data)
|
||||
}
|
||||
return
|
||||
return response.data
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
resolve(data)
|
||||
resolve(response.data)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -397,6 +397,7 @@ export const getUserInfoById = async (id) => {
|
||||
{ id },
|
||||
{
|
||||
showLoading: false,
|
||||
showToast: false, // 不显示错误弹窗
|
||||
}
|
||||
);
|
||||
return response;
|
||||
|
||||
Reference in New Issue
Block a user