聚星移动端

index.js 476B

12345678910111213141516171819202122232425262728
  1. import Vue from 'vue'
  2. import Vuex from 'vuex'
  3. import { req,rootDocment } from '../config/util.js'
  4. import { api } from '../config/api.js'
  5. Vue.use(Vuex)
  6. Vue.prototype.$req = req
  7. Vue.prototype.$api = api
  8. Vue.prototype.$rootDocment = rootDocment
  9. const store = new Vuex.Store({
  10. state: {
  11. systemInfo:{},//系统信息
  12. },
  13. mutations: {
  14. setSystemInfo(state,data){//设置系统信息
  15. state.systemInfo = data
  16. },
  17. },
  18. getters: {
  19. },
  20. actions: {
  21. }
  22. })
  23. export default store