
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
import { createStore } from "vuex";
export default createStore({
state: {
loginUser: null,
key: null,
isLoading: false,
},
getters: {
getLoginUser: function () {},
getKey: function () {},
},
mutations: {
setLoginUser: function (state, newValue) {
state.loginUser = newValue;
},
setKey: function (state, newValue) {
state.key = newValue;
},
setLoading(state, newValue) {
state.isLoading = newValue;
},
},
});