mirror of
https://github.com/romancm/gamebrary
synced 2024-12-18 15:23:14 +00:00
23 lines
508 B
JavaScript
Executable file
23 lines
508 B
JavaScript
Executable file
/* eslint no-shadow: ["error", { "allow": ["state"] }] */
|
|
import Vue from 'vue';
|
|
import Vuex from 'vuex';
|
|
import VuexPersist from 'vuex-persist';
|
|
import state from './state';
|
|
import actions from './actions';
|
|
import mutations from './mutations';
|
|
import getters from './getters';
|
|
|
|
Vue.use(Vuex);
|
|
|
|
const vuexLocalStorage = new VuexPersist({
|
|
key: 'vuex',
|
|
storage: window.localStorage,
|
|
});
|
|
|
|
export default new Vuex.Store({
|
|
state,
|
|
actions,
|
|
mutations,
|
|
getters,
|
|
plugins: [vuexLocalStorage.plugin],
|
|
});
|