Q-ABAB 1 anno fa
parent
commit
c956b734ff
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/permission.js

+ 1 - 1
src/permission.js

@@ -7,7 +7,7 @@ import { setToken,getToken } from '@/utils/auth' // get token from cookie
 let flag = false; //查看是否登录
 
 function userLogin(callback){
-  if(flag)return
+  if(flag)return callback();
   ajax.post(store.state.api+'/userLogin',{
     id:getToken(),
   }).then(res=>{