You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
311 B
23 lines
311 B
// store/user.js
|
|
const state = {
|
|
userInfo: null,
|
|
};
|
|
|
|
const mutations = {
|
|
SET_USER_INFO(state, info) {
|
|
state.userInfo = info;
|
|
},
|
|
};
|
|
|
|
const actions = {
|
|
setUserInfo({ commit }, info) {
|
|
commit("SET_USER_INFO", info);
|
|
},
|
|
};
|
|
|
|
export default {
|
|
namespaced: true,
|
|
state,
|
|
mutations,
|
|
actions,
|
|
};
|
|
|