Explorar el Código

登录异常判断

1178232204@qq.com hace 3 años
padre
commit
62c2854498
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/js/utils.js

+ 3 - 1
src/js/utils.js

@@ -272,7 +272,9 @@ const post = function (url, data, opts) {
             isFather: true,
             fatherWrapper: $("#mainBox", parent.document)
           });
-          window.location.href = 'login.html'
+          setTimeout(() => {
+            window.parent.window.location.href = 'login.html'
+          }, 1200)
         }
         resolve({
           data: res