debian-mirror-gitlab/app/assets/javascripts/frequent_items/store/index.js

18 lines
361 B
JavaScript
Raw Normal View History

2018-11-08 19:23:39 +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-02-22 17:27:13 +05:30
export const createStore = (initState = {}) => {
return new Vuex.Store({
2018-11-08 19:23:39 +05:30
actions,
getters,
mutations,
2021-02-22 17:27:13 +05:30
state: state(initState),
2018-11-08 19:23:39 +05:30
});
2021-02-22 17:27:13 +05:30
};