setting.js 483 B

123456789101112131415161718192021
  1. import Vue from 'vue'
  2. Vue.config.stomp = {
  3. host: `wss://${location.host}/ws`,
  4. // host: 'wss://172.17.116.7:15674/', // ws://${location.host}/ws
  5. connectHeaders: {
  6. host: 'smart',
  7. login: 'smart',
  8. passcode: 'smart123'
  9. },
  10. reconnectDelay: 5000,
  11. heartbeatIncoming: 4000,
  12. heartbeatOutgoing: 4000,
  13. debug: false
  14. }
  15. Vue.config.weixin = {
  16. // baseUrl: process.env.BASE_URL + 'weixin',
  17. baseUrl: `http://${location.host}`
  18. // baseUrl: 'http://192.168.0.81:8001'
  19. }