index.js 268 B

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