Browse Source

修改登录

修改登录
dangyunlong 3 months ago
parent
commit
c76e014fe7
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/store/modules/user.js

+ 3 - 3
src/store/modules/user.js

@@ -78,8 +78,9 @@ const actions = {
 
         //会员登录跳转 但不储存
         if(userInfo.backurl){
-          //什么都不做
-          console.log("会员不进入系统!")
+          //只设置token 不储存url
+          setToken(data.token,data.exp)
+          commit('SET_TOKEN',data.token)
         }
 
         //会员登录进入系统,储存所属url
@@ -92,7 +93,6 @@ const actions = {
           commit('SET_TOKEN',data.token)
         }
         
-
         resolve(response)
       }).catch(error => {
         reject(error)