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