config.js 792 B

12345678910111213141516171819202122232425262728293031
  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: 'http://10.1.82.60:7004/file/',
  15. // fileApi: 'http://10.1.82.64:7004/file/',
  16. fileApi: 'https://r2rapi.cocorobo.cn/file/',
  17. socket: "https://poll.cocorobo.cn",
  18. // socket: "http://localhost:1473",
  19. // api: 'http://localhost:7003/api/pbl/',
  20. },
  21. mutations: {
  22. update(state, [key, value]) {
  23. state[key] = value;
  24. },
  25. }
  26. })
  27. export default store