|
@@ -173,9 +173,13 @@ const post = function(url, data) {
|
|
|
if (error.status === 403 || error.status === 401) {
|
|
|
setCookie('behosDateStart', '');
|
|
|
setCookie('behosDateEnd', '');
|
|
|
+ $.alerModal({"message":"没有该权限",type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
|
|
|
+
|
|
|
// wd.location.href = "../login.html";
|
|
|
} else if (error.status === 500 || error.status === 501 || error.status === 404) {
|
|
|
- // wd.location.href = '../error.html?code=' + error.status;
|
|
|
+ $.alerModal({"message":'接口错误',type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
|
|
|
+
|
|
|
+ // wd.location.href = '../error.html?code=' + error.status;
|
|
|
}
|
|
|
reject(error);
|
|
|
},
|