setting.js 732 B

1234567891011121314151617181920212223242526272829
  1. import Vue from 'vue';
  2. Vue.config.weixin = {
  3. // baseUrl: process.env.BASE_URL + 'weixin',
  4. baseUrl: `http://${location.host}`,
  5. };
  6. const prod = {
  7. host: 'tehq',
  8. login: 'tehq', //visit
  9. passcode: 'tehq', //visit123
  10. };
  11. const dev = {
  12. host: 'tehqDev',
  13. login: 'tehqDev', //visit
  14. passcode: 'tehqDev', //visit123
  15. };
  16. Vue.prototype.$ex = process.env.NODE_ENV === 'development' ? 't_m_dev_local' : 't_m';
  17. Vue.config.stomp = {
  18. // brokerURL: 'ws://192.168.1.118/ws',
  19. brokerURL: '/ws', // ws://${location.host}/ws
  20. // brokerURL: 'ws://127.0.0.1:8000/ws',
  21. connectHeaders: process.env.NODE_ENV === 'development' ? dev : prod,
  22. // debug: true,
  23. reconnectDelay: 5000,
  24. heartbeatIncoming: 4000,
  25. heartbeatOutgoing: 4000,
  26. };