index.js 227 B

12345678910111213141516
  1. import Vue from 'vue'
  2. import Vuex from 'vuex'
  3. import user from '@/store/modules/user'
  4. import getters from './getters'
  5. Vue.use(Vuex)
  6. const store = new Vuex.Store({
  7. modules: {
  8. user
  9. },
  10. getters
  11. })
  12. export default store