星火管控前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

config.js 1.3KB

9 months ago
8 months ago
6 months ago
9 months ago
8 months ago
6 months ago
12345678910111213141516171819202122232425262728293031323334
  1. window.isTest = true; //测试环境true 正式环境false
  2. window._config = window.isTest
  3. ? {
  4. // 测试环境
  5. baseUrl: "https://mcapitest.xhkjedu.com/",
  6. baseImageUrl: "https://mcapitest.xhkjedu.com/",
  7. showImageUrl: "https://mcapitest.xhkjedu.com/",
  8. downLoadUrl: "https://mcapitest.xhkjedu.com/",
  9. wsUrl: "wss://mcwstest.xhkjedu.com/ws",
  10. axiosApiTimeout: 60, // 接口超时时间 单位秒
  11. axiosFileTimeout: 120, // 上传文件超时时间 单位秒
  12. // 开发者
  13. developer: "河南星火燎原软件科技有限公司",
  14. // 联系我们
  15. contactUs: "https://www.xhkjedu.com/",
  16. versionname: "测试 v1.0.1",
  17. secret: false
  18. }
  19. : {
  20. // 正式环境
  21. baseUrl: "https://mcapi.xhkjedu.com/",
  22. baseImageUrl: "https://mcapi.xhkjedu.com/",
  23. showImageUrl: "https://mcapi.xhkjedu.com/",
  24. downLoadUrl: "https://mcapitest.xhkjedu.com/",
  25. wsUrl: "wss://mcws.xhkjedu.com/ws",
  26. axiosApiTimeout: 20, // 接口超时时间 单位秒
  27. axiosFileTimeout: 30, // 上传文件超时时间 单位秒
  28. // 开发者
  29. developer: "河南星火燎原软件科技有限公司",
  30. // 联系我们
  31. contactUs: "https://www.xhkjedu.com/",
  32. versionname: "正式 v1.0.1",
  33. secret: true
  34. };