traxxx/assets/js/store.js

19 lines
414 B
JavaScript

import Vue from 'vue';
import Vuex from 'vuex';
import initAuthStore from './auth/auth';
import initReleasesStore from './releases/releases';
function initStore(router) {
Vue.use(Vuex);
const store = new Vuex.Store();
store.registerModule('auth', initAuthStore(store, router));
store.registerModule('releases', initReleasesStore(store, router));
return store;
}
export default initStore;