import { createStore } from 'vuex'; export default createStore ({ state: { loginUser: null, }, getters: { getLoginUser: function () { }, }, mutations: { setLoginUser: function (state, newValue) { state.loginUser = newValue; }, } });