zhouna %!s(int64=4) %!d(string=hai) anos
pai
achega
ae2edee483
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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);
       },