config.js 688 B

1234567891011121314151617181920212223242526272829
  1. import Vue from 'vue'
  2. import Vuex from 'vuex'
  3. Vue.use(Vuex)
  4. const store = new Vuex.Store({
  5. state: {
  6. isLogin: false,
  7. luyou: 1,
  8. userInfo: {},
  9. nCount: 0,
  10. report:"",
  11. api: 'https://pbl.cocorobo.cn/api/pbl/',
  12. // fileApi: 'http://localhost:7004/file/',
  13. // fileApi: 'http://10.3.16.166:7004/file/',
  14. fileApi: 'https://r2rapi.cocorobo.cn/file/',
  15. socket: "https://poll.cocorobo.cn",
  16. // socket: "http://localhost:1473",
  17. // api: 'http://localhost:7003/api/pbl/',
  18. },
  19. mutations: {
  20. update(state, [key, value]) {
  21. state[key] = value;
  22. },
  23. }
  24. })
  25. export default store