token问题修复
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
67e1ea542e
commit
3621d4448a
|
@ -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)
|
||||
|
|
|
@ -294,6 +294,7 @@ export default {
|
|||
this.loginLoading = false
|
||||
this.toggleRoleVisible = true
|
||||
}).catch(err => {
|
||||
this.loginLoading = false
|
||||
console.log(err)
|
||||
})
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue