19 lines
369 B
JavaScript
19 lines
369 B
JavaScript
|
import Vue from 'vue';
|
||
|
import Vuex from 'vuex';
|
||
|
import * as actions from './actions';
|
||
|
import * as getters from './getters';
|
||
|
import mutations from './mutations';
|
||
|
import createState from './state';
|
||
|
|
||
|
Vue.use(Vuex);
|
||
|
|
||
|
export const createStore = () =>
|
||
|
new Vuex.Store({
|
||
|
actions,
|
||
|
getters,
|
||
|
mutations,
|
||
|
state: createState(),
|
||
|
});
|
||
|
|
||
|
export default createStore();
|