index.js 410 B

1234567891011121314151617181920212223
  1. import Vue from 'vue'
  2. import Vuex from 'vuex'
  3. import user from './modules/user'
  4. import permission from './modules/permission'
  5. import getters from './getters'
  6. import mutations from './mutations'
  7. import state from './state'
  8. import app from './modules/app'
  9. Vue.use(Vuex)
  10. const store = new Vuex.Store({
  11. modules: {
  12. permission,
  13. user,
  14. app
  15. },
  16. state,
  17. mutations,
  18. getters
  19. })
  20. export default store