24 lines
452 B
JavaScript
24 lines
452 B
JavaScript
|
import { createStore } from 'vuex';
|
||
|
|
||
|
import rootMutations from './mutations.js'
|
||
|
import rootActions from './actions.js'
|
||
|
import rootGetters from './getters.js'
|
||
|
|
||
|
import counterModule from './modules/counter/index.js';
|
||
|
|
||
|
const store = createStore({
|
||
|
modules: {
|
||
|
counter: counterModule
|
||
|
},
|
||
|
state() {
|
||
|
return {
|
||
|
isLoggedIn: false
|
||
|
};
|
||
|
},
|
||
|
mutations: rootMutations,
|
||
|
getters: rootGetters,
|
||
|
actions: rootActions
|
||
|
});
|
||
|
|
||
|
export default store;
|