misc_pterodactyl-panel/resources/assets/scripts/store/index.js

23 lines
455 B
JavaScript
Raw Normal View History

import Vue from 'vue';
import Vuex from 'vuex';
import auth from './modules/auth';
Vue.use(Vuex);
const store = new Vuex.Store({
2018-06-06 06:42:34 +00:00
strict: process.env.NODE_ENV !== 'production',
modules: { auth },
});
if (module.hot) {
module.hot.accept(['./modules/auth'], () => {
const newAuthModule = require('./modules/auth').default;
store.hotUpdate({
modules: { newAuthModule },
});
});
}
export default store;