16 lines
293 B
JavaScript
16 lines
293 B
JavaScript
|
import Vue from 'vue';
|
||
|
import Vuex from 'vuex';
|
||
|
import actions from './actions';
|
||
|
import mutations from './mutations';
|
||
|
import state from './state';
|
||
|
|
||
|
Vue.use(Vuex);
|
||
|
|
||
|
export const createStore = () => ({
|
||
|
actions,
|
||
|
mutations,
|
||
|
state: state(),
|
||
|
});
|
||
|
|
||
|
export default new Vuex.Store(createStore());
|