This commit is contained in:
初志鑫 2020-07-29 16:19:08 +08:00
parent c716a2776c
commit 5ae4f4b80b

View File

@ -68,8 +68,8 @@ const actions = {
);
}
},
async getUserInfo({ commit }) {
const { data } = await getUserInfo();
async getUserInfo({ commit, state }) {
const { data } = await getUserInfo(state.accessToken);
if (!data) {
Vue.prototype.$baseMessage("验证失败,请重新登录...", "error");
return false;