2018-07-23 16:54:48 +00:00
|
|
|
import Vue from 'vue';
|
|
|
|
import Vuex from 'vuex';
|
|
|
|
import * as actions from './actions';
|
2018-07-31 15:50:34 +00:00
|
|
|
import * as getters from './getters';
|
2018-07-23 16:54:48 +00:00
|
|
|
import mutations from './mutations';
|
|
|
|
import state from './state';
|
|
|
|
|
|
|
|
Vue.use(Vuex);
|
|
|
|
|
2020-09-03 12:08:47 +00:00
|
|
|
export const getStoreConfig = () => ({
|
|
|
|
actions,
|
|
|
|
mutations,
|
|
|
|
getters,
|
|
|
|
state: state(),
|
|
|
|
});
|
|
|
|
|
|
|
|
export default () => new Vuex.Store(getStoreConfig());
|