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