config.js 572 B

1234567891011121314151617181920212223242526
  1. let urls = {
  2. api: '',
  3. socket: ''
  4. }
  5. if(process.env.NODE_ENV === 'development'){
  6. // 开发环境
  7. // urls.api = 'http://localhost:8617'
  8. // urls.socket = 'ws://localhost:8617'
  9. urls.api = 'http://124.70.18.168:8617'
  10. urls.socket = 'http://124.70.18.168:8617'
  11. }else{
  12. // t2预发布环境
  13. urls.api = 'http://124.70.18.168:8616'
  14. urls.socket = 'http://124.70.18.168:8616'
  15. // // 生产环境
  16. // urls.api = 'http://10.155.32.18:8088'
  17. // urls.socket = 'ws://10.155.32.18:8088'
  18. // 同域
  19. // urls.api = ''
  20. // urls.socket = ''
  21. }
  22. export default urls