index.js 242 B

123456789101112131415
  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