优化接口请求

This commit is contained in:
duan 2025-02-12 10:51:18 +08:00
parent a599adc63e
commit 90be0d21b2
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ export const enum ResultEnum {
/**
*
*/
SUCCESS = "00000",
SUCCESS = 200,
/**
*
*/

View File

@ -37,7 +37,7 @@ service.interceptors.response.use(
}
const { code, data, msg } = response.data;
if (code === ResultEnum.SUCCESS || code === undefined || code === null || code === 200) {
if (code === ResultEnum.SUCCESS || code === undefined || code === null) {
return data ? data : response.data;
}