fix(net-tool): 修复响应数据异常处理,增加对状态码 200 的判断
All checks were successful
/ release (push) Successful in 29s
All checks were successful
/ release (push) Successful in 29s
This commit is contained in:
parent
306a55edef
commit
e2472588a2
@ -227,7 +227,7 @@ class NetToolBase {
|
||||
})
|
||||
}
|
||||
// 响应数据异常
|
||||
if ("code" in resData && resData.code !== 0) {
|
||||
if ("code" in resData && resData.code !== 0 && resData.code !== 200) {
|
||||
throw new NetError({
|
||||
response: res,
|
||||
code: resData.code,
|
||||
|
Loading…
x
Reference in New Issue
Block a user