BUG 30545

This commit is contained in:
aixianling
2022-07-18 11:07:19 +08:00
parent fdf5680bde
commit ae247c2a9d

View File

@@ -18,7 +18,7 @@ export const user = {
//获取企业微信后台账号信息
//党员认证状态 partyStatusForWX:0、未认证 1、认证中 2、已认证
return http.post("/app/appwechatuser/check").then(res => {
if (res?.code == 0) {
if (res?.data) {
commit('setUser', res.data)
return Promise.all([])
}
@@ -58,7 +58,7 @@ export const user = {
} else return Promise.reject("缺少登录code")
},
autoLogin({dispatch}, params = {nickName: '微信用户'}) {
return dispatch("getCode").then(code => dispatch("getToken", {...params, code}))
return dispatch("getCode").then(code => dispatch("getToken", {...params, code})).then(() => dispatch('getUserInfo'))
},
authCheck({state, dispatch, rootState}, {checkType, modulePath}) {
//用于进入应用的权限判断