user store增加showLoginModal

This commit is contained in:
TOP糯米 2023-03-06 17:25:50 +08:00
parent 48436716e2
commit 41b75cc2b2
1 changed files with 7 additions and 0 deletions

View File

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