index.js 410 B

12345678910111213141516171819
  1. import Vue from 'vue'
  2. import Vuex from 'vuex'
  3. import getters from './getters'
  4. // import { createPersistedState, createSharedMutations } from 'vuex-electron'
  5. import modules from './modules'
  6. Vue.use(Vuex)
  7. export default new Vuex.Store({
  8. modules,
  9. getters,
  10. plugins: [
  11. // createPersistedState(),
  12. // createSharedMutations()
  13. ],
  14. strict: false
  15. // strict: process.env.NODE_ENV !== 'production'
  16. })