修改user store

This commit is contained in:
TOP糯米 2023-03-06 11:56:05 +08:00
parent 668a35fca7
commit 272c998567
1 changed files with 5 additions and 5 deletions

View File

@ -3,20 +3,20 @@ import user from '@/core/models/user'
export default { export default {
namespaced: true, namespaced: true,
state: { state: {
showLoginModal: false, isLogin: false,
userInfo: null, userInfo: null,
}, },
getters: { getters: {
showLoginModal(state) { isLogin(state) {
return state.showLoginModal; return state.isLogin;
}, },
userInfo(state) { userInfo(state) {
return state.userInfo; return state.userInfo;
}, },
}, },
mutations: { mutations: {
showLoginModal(state, data) { isLogin(state, data) {
state.showLoginModal = data; state.isLogin = data;
}, },
userInfo(state, data) { userInfo(state, data) {
state.userInfo = data; state.userInfo = data;