修改user store
This commit is contained in:
parent
668a35fca7
commit
272c998567
|
@ -3,20 +3,20 @@ 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;
|
||||
},
|
||||
userInfo(state) {
|
||||
return state.userInfo;
|
||||
},
|
||||
},
|
||||
mutations: {
|
||||
showLoginModal(state, data) {
|
||||
state.showLoginModal = data;
|
||||
isLogin(state, data) {
|
||||
state.isLogin = data;
|
||||
},
|
||||
userInfo(state, data) {
|
||||
state.userInfo = data;
|
||||
|
|
Loading…
Reference in New Issue