2018-11-18 11:00:15 +05:30
|
|
|
import Vue from 'vue';
|
|
|
|
import Vuex from 'vuex';
|
|
|
|
import * as actions from './actions';
|
|
|
|
import * as getters from './getters';
|
|
|
|
import mutations from './mutations';
|
|
|
|
import state from './state';
|
|
|
|
|
|
|
|
Vue.use(Vuex);
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
export const createStore = () =>
|
|
|
|
new Vuex.Store({
|
|
|
|
state,
|
|
|
|
getters,
|
|
|
|
actions,
|
|
|
|
mutations,
|
|
|
|
});
|