refactor(projects): 代码优化

This commit is contained in:
Soybean
2022-07-16 00:13:19 +08:00
parent 872bb84502
commit 6143605297
24 changed files with 107 additions and 104 deletions

View File

@@ -24,8 +24,8 @@ declare namespace Service {
/**
* 请求的错误类型:
* - axios: axios错误网络错误, 请求超时, 默认的兜底错误
* - http: 请求成功响应的状态码非200的错误
* - backend: 请求成功响应的状态码为200由后端定义的业务错误
* - http: 请求成功,响应的http状态码非200的错误
* - backend: 请求成功,响应的http状态码为200由后端定义的业务错误
*/
type RequestErrorType = 'axios' | 'http' | 'backend';