index.js 985B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import Vue from 'vue'
  2. import Vuex from 'vuex'
  3. import app from './modules/app'
  4. import errorLog from './modules/errorLog'
  5. // import permission from './modules/permission'
  6. import tagsView from './modules/tagsView'
  7. import user from './modules/user'
  8. import xt_user from './modules/xt_user'
  9. import xt_permission from './modules/xt_permission'
  10. import xt_role_temps from './modules/role_temps'
  11. import global_config from './modules/globalConfig'
  12. // import insuplcAdmdvs_config from './modules/in'
  13. import getters from './getters'
  14. import data from './modules/data'
  15. import temp_params from './modules/temp_params'
  16. import pagedata from './modules/pagedata'
  17. Vue.use(Vuex)
  18. const store = new Vuex.Store({
  19. mutations:{
  20. },
  21. modules: {
  22. app,
  23. errorLog,
  24. // permission,
  25. tagsView,
  26. user,
  27. xt_user,
  28. data,
  29. xt_permission,
  30. xt_role_temps,
  31. global_config,
  32. temp_params,
  33. pagedata,
  34. },
  35. getters
  36. })
  37. // store.dispatch("InitAdminUserInfo")
  38. export default store