2020-10-24 23:57:45 +05:30
|
|
|
import Vue from 'vue';
|
|
|
|
import Vuex from 'vuex';
|
|
|
|
import * as actions from './actions';
|
|
|
|
import mutations from './mutations';
|
|
|
|
import createState from './state';
|
|
|
|
|
|
|
|
Vue.use(Vuex);
|
|
|
|
|
2021-03-08 18:12:59 +05:30
|
|
|
export default (initialState) =>
|
2020-10-24 23:57:45 +05:30
|
|
|
new Vuex.Store({
|
|
|
|
actions,
|
|
|
|
mutations,
|
|
|
|
state: createState(initialState),
|
|
|
|
});
|