Transitioning to Vue. Installed environment and restored homepage scene overview.
This commit is contained in:
18
assets/js/store.js
Normal file
18
assets/js/store.js
Normal file
@@ -0,0 +1,18 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user