Browse Source

登录异常验证

1178232204@qq.com 3 years ago
parent
commit
ccb4115eaa
1 changed files with 9 additions and 0 deletions
  1. 9 0
      src/js/utils.js

+ 9 - 0
src/js/utils.js

@@ -341,6 +341,15 @@ const post = function (url, data, opts) {
             });
             });
 
 
             // wd.location.href = '../error.html?code=' + error.status;
             // wd.location.href = '../error.html?code=' + error.status;
+          } else if (error.status === 10020013) {
+            $.alerModal({
+              "message": '登录异常',
+              type: "tip",
+              time: '1000',
+              isFather: true,
+              fatherWrapper: $("#mainBox", parent.document)
+            });
+            wd.location.href = "../login.html";
           }
           }
         }
         }
         reject(error);
         reject(error);