Browse Source

Merge remote-tracking branch 'origin/dev2.1.4-1119' into dev2.1.4-1119

zhouna 3 years ago
parent
commit
60957eda88
1 changed files with 9 additions and 0 deletions
  1. 9 0
      src/js/utils.js

+ 9 - 0
src/js/utils.js

@@ -264,6 +264,15 @@ const post = function (url, data, opts) {
             data: jsonres.msg
           }
           window.parent.postMessage(JSON.stringify(dialogmessage), '*')
+        } else if (jsonres.code === '10020013') {
+          $.alerModal({
+            "message": '登录异常',
+            type: "tip",
+            time: '1000',
+            isFather: true,
+            fatherWrapper: $("#mainBox", parent.document)
+          });
+          window.location.href = 'login.html'
         }
         resolve({
           data: res