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) {
|
loginByToken({ commit }, Token) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
TJUserLoginInfo({ Token }).then(async response => {
|
TJUserLoginInfo(Token).then(async response => {
|
||||||
if (response.IsSuccess) {
|
if (response.IsSuccess) {
|
||||||
zzSessionStorage.removeItem('lastWorkbench')
|
zzSessionStorage.removeItem('lastWorkbench')
|
||||||
const data = response.Result
|
const data = response.Result
|
||||||
|
commit('SET_TOKEN', response.OtherInfo)
|
||||||
setToken(response.OtherInfo)
|
setToken(response.OtherInfo)
|
||||||
commit('SET_ROLES', data)
|
commit('SET_ROLES', data)
|
||||||
resolve(data)
|
resolve(data)
|
||||||
|
|
|
@ -294,6 +294,7 @@ export default {
|
||||||
this.loginLoading = false
|
this.loginLoading = false
|
||||||
this.toggleRoleVisible = true
|
this.toggleRoleVisible = true
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
|
this.loginLoading = false
|
||||||
console.log(err)
|
console.log(err)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue