2019-10-30 00:07:52 +00:00
|
|
|
import Vue from 'vue';
|
|
|
|
import Vuex from 'vuex';
|
|
|
|
import * as actions from './actions';
|
|
|
|
import mutations from './mutations';
|
2021-02-14 18:09:20 +00:00
|
|
|
import createState from './state';
|
2019-10-30 00:07:52 +00:00
|
|
|
|
|
|
|
Vue.use(Vuex);
|
|
|
|
|
2020-12-24 00:10:25 +00:00
|
|
|
export const createStore = (initialState) =>
|
2019-10-30 00:07:52 +00:00
|
|
|
new Vuex.Store({
|
|
|
|
state: createState(initialState),
|
|
|
|
actions,
|
|
|
|
mutations,
|
|
|
|
});
|
|
|
|
|
|
|
|
export default createStore;
|