Explorar o código

Merge branch 'appeal0121' into test

1178232204@qq.com %!s(int64=3) %!d(string=hai) anos
pai
achega
48587d123c
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      src/js/utils.js

+ 3 - 3
src/js/utils.js

@@ -269,8 +269,8 @@ function unloginPop(msg) {
       sureBtn: false,
       message: msg || '登录过期',
       callback: function () {
-        clearAllCookie()
-          (parent || window).location.href = 'login.html'
+        clearAllCookie();
+        (parent || window).location.href = 'login.html'
       }
     });
     //失效后不点知道了直接刷新处理标记
@@ -360,7 +360,7 @@ const delCookie = function (name) {
   let cval = getCookie(name);
   if (cval != null) document.cookie = name + '=' + cval + ';expires=' + exp.toGMTString();
 };
-const clearAllCookie= function() {
+const clearAllCookie = function () {
   var keys = document.cookie.match(/[^ =;]+(?=\=)/g);
   if (keys) {
     for (var i = keys.length; i--;)