zhouna 4 년 전
부모
커밋
ae2edee483
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      src/js/utils.js

+ 5 - 1
src/js/utils.js

@@ -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);
       },