diff --git a/src/store/index.js b/src/store/index.js index fc21d100..143af8f2 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -194,7 +194,7 @@ const store = new Vuex.Store({ }).then(res => { if (res?.access_token) { state.commit("login", [res?.token_type, res?.access_token].join(" ").trim()) - module != 'AppCountryAlbum' && state.dispatch("getAccount") + module != 'AppCountryAlbum' && state.dispatch("getAccount", {module}) resolve() } }).catch(err => { @@ -212,9 +212,9 @@ const store = new Vuex.Store({ }) } }, - getAccount(state) { + getAccount(state, config) { //获取企业微信后台账号信息 - return http.post("/admin/user/detail-phone").then(res => { + return http.post("/admin/user/detail-phone", null, config).then(res => { if (res?.code == 0) { state.commit('setUser', res.data) action.getGridInfo()