token问题修复
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2025-04-01 17:43:28 +08:00
parent 67e1ea542e
commit 3621d4448a
2 changed files with 3 additions and 1 deletions

View File

@ -144,10 +144,11 @@ const actions = {
},
loginByToken({ commit }, Token) {
return new Promise((resolve, reject) => {
TJUserLoginInfo({ Token }).then(async response => {
TJUserLoginInfo(Token).then(async response => {
if (response.IsSuccess) {
zzSessionStorage.removeItem('lastWorkbench')
const data = response.Result
commit('SET_TOKEN', response.OtherInfo)
setToken(response.OtherInfo)
commit('SET_ROLES', data)
resolve(data)

View File

@ -294,6 +294,7 @@ export default {
this.loginLoading = false
this.toggleRoleVisible = true
}).catch(err => {
this.loginLoading = false
console.log(err)
})
},