debian-mirror-gitlab/app/assets/javascripts/frequent_items/store/index.js
2021-02-22 17:27:13 +05:30

17 lines
361 B
JavaScript

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);
export const createStore = (initState = {}) => {
return new Vuex.Store({
actions,
getters,
mutations,
state: state(initState),
});
};