|
|
|
@ -118,7 +118,7 @@ $http.dataFactory = async res => { |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// console.log("rsp",res.response)
|
|
|
|
// console.log("rsp",res)
|
|
|
|
let httpData = res.response.data |
|
|
|
if (typeof httpData == "string") { |
|
|
|
try { |
|
|
|
@ -152,6 +152,11 @@ $http.dataFactory = async res => { |
|
|
|
// why 系统专有
|
|
|
|
if(httpData.resultCode == '00000000'){ |
|
|
|
return Promise.resolve(httpData) |
|
|
|
}else{ |
|
|
|
return Promise.reject({ |
|
|
|
statusCode: httpData.resultCode, |
|
|
|
errMsg: httpData.resultMsg |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
// 判断是否需要登录
|
|
|
|
|