config.js 739 B

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