2019-07-07 11:18:12 +05:30
|
|
|
import Vue from 'vue';
|
|
|
|
import Vuex from 'vuex';
|
|
|
|
import state from './state';
|
|
|
|
import * as actions from './actions';
|
|
|
|
import * as getters from './getters';
|
|
|
|
import mutations from './mutations';
|
|
|
|
|
|
|
|
Vue.use(Vuex);
|
|
|
|
|
2019-07-31 22:56:46 +05:30
|
|
|
export { state, actions, getters, mutations };
|
|
|
|
|
2020-06-23 00:09:42 +05:30
|
|
|
export default initialState =>
|
2019-07-07 11:18:12 +05:30
|
|
|
new Vuex.Store({
|
2020-06-23 00:09:42 +05:30
|
|
|
state: { ...state(), ...initialState },
|
2019-07-07 11:18:12 +05:30
|
|
|
actions,
|
|
|
|
mutations,
|
|
|
|
getters,
|
|
|
|
});
|