|
@@ -202,6 +202,8 @@ const post = function (url, data, opts) {
|
|
if (isOut) {
|
|
if (isOut) {
|
|
//登录信息失效处理
|
|
//登录信息失效处理
|
|
unloginPop(res.msg);
|
|
unloginPop(res.msg);
|
|
|
|
+ }else if(code === '00020007'){
|
|
|
|
+ toast(res.msg)
|
|
} else {
|
|
} else {
|
|
resolve({
|
|
resolve({
|
|
data: res
|
|
data: res
|
|
@@ -225,7 +227,7 @@ const post = function (url, data, opts) {
|
|
fatherWrapper: $("#mainBox", parent.document)
|
|
fatherWrapper: $("#mainBox", parent.document)
|
|
});
|
|
});
|
|
}
|
|
}
|
|
- } else if (error.status === 500 || error.status === 501 || error.status === 404) {
|
|
|
|
|
|
+ } else if (error.status === 500 || error.status === 501 || error.status === 404 ) {
|
|
$.alerModal({
|
|
$.alerModal({
|
|
"message": '接口错误',
|
|
"message": '接口错误',
|
|
type: "tip",
|
|
type: "tip",
|