blob: a2880e7d0313a24bb3ad49814b7501f90dc87bff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import Vue from 'vue';
import Vuex from 'vuex';
import actionsFactory from './actions';
import * as getters from './getters';
import mutations from './mutations';
import state from './state';
Vue.use(Vuex);
export default ({ initialState, endpoints, hasPagination }) =>
new Vuex.Store({
state: { ...state(), ...initialState },
actions: actionsFactory({ endpoints, hasPagination }),
mutations,
getters,
});
|