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.
24 lines
311 B
24 lines
311 B
1 month ago
|
// 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,
|
||
|
};
|