Explorar o código

登录失效调试11

zhouna %!s(int64=3) %!d(string=hai) anos
pai
achega
6982588338
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/js/utils.js

+ 1 - 1
src/js/utils.js

@@ -143,7 +143,7 @@ window.abortAjax = '';
 const post = function (url, data, opts) {
   if(localStorage.getItem('toLogin')==='1'){
     //如果前面已经被标记为登录失效,接下来的请求都不发送
-    return;
+    return new Promise(()=>{});
   }
   let isPlacefile = getCookie('isPlacefile') || 1;
   const token = localStorage.getItem('accessToken');