setting.js 495 B

123456789101112131415161718192021
  1. import Vue from 'vue';
  2. Vue.config.weixin = {
  3. // baseUrl: process.env.BASE_URL + 'weixin',
  4. baseUrl: `http://${location.host}`,
  5. };
  6. Vue.config.stomp = {
  7. // brokerURL: 'ws://192.168.1.118/ws',
  8. brokerURL: '/ws', // ws://${location.host}/ws
  9. // brokerURL: 'ws://127.0.0.1:8000/ws',
  10. connectHeaders: {
  11. host: 'platform',
  12. login: 'visit', //visit
  13. passcode: 'visit', //visit123
  14. },
  15. // debug: true,
  16. reconnectDelay: 5000,
  17. heartbeatIncoming: 4000,
  18. heartbeatOutgoing: 4000,
  19. };