中心调研登录问题解决
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
a8fe3d6073
commit
8799431f7a
|
@ -251,7 +251,9 @@ const actions = {
|
|||
getUserInfo({ commit, state }) {
|
||||
return new Promise((resolve, reject) => {
|
||||
getUser().then(res => {
|
||||
commit('SET_ROLES', res.Result.AccountList)
|
||||
if (res.Result) {
|
||||
commit('SET_ROLES', res.Result.AccountList)
|
||||
}
|
||||
resolve(res.Result)
|
||||
}).catch(err => {
|
||||
reject(err)
|
||||
|
|
Loading…
Reference in New Issue