|
@@ -56,7 +56,7 @@ const actions = {
|
|
|
},
|
|
|
|
|
|
// 登录获取token
|
|
|
- async login ({ commit }) {
|
|
|
+ async login ({ dispatch, commit }) {
|
|
|
try {
|
|
|
if (platform === 'notInDingTalk') {
|
|
|
Toast({
|
|
@@ -71,6 +71,7 @@ const actions = {
|
|
|
type: 'UPDATE_USER_TOKEN',
|
|
|
token: result.data
|
|
|
})
|
|
|
+ dispatch('getUserInfo')
|
|
|
}
|
|
|
} catch (error) {
|
|
|
login
|