setting.js 561 B

1234567891011121314151617181920
  1. import Vue from 'vue';
  2. Vue.config.weixin = {
  3. // baseUrl: process.env.BASE_URL + 'weixin',
  4. baseUrl: 'http://free.liaoningdoupo.com',
  5. target: process.env.NODE_ENV === 'development' ? 'http://10.16.10.7:8001' : 'http://free.liaoningdoupo.com/student',
  6. };
  7. Vue.config.stomp = {
  8. // brokerURL: 'ws://192.168.1.190:15674/ws',
  9. brokerURL: '/ws', // ws://${location.host}/ws
  10. connectHeaders: {
  11. host: 'train',
  12. login: 'visit',
  13. passcode: 'visit',
  14. },
  15. // debug: true,
  16. reconnectDelay: 5000,
  17. heartbeatIncoming: 4000,
  18. heartbeatOutgoing: 4000,
  19. };