修改user store
This commit is contained in:
parent
668a35fca7
commit
272c998567
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue