modeConfig.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. // 本地联调开关
  2. const localTest = false;
  3. // 服务器地址
  4. let baseURL = "/current/" // 正式环境
  5. // websocket 服务器地址
  6. let websocketUrl = null;
  7. // 3D 地球瓦片路径
  8. let tilesUrl = null;
  9. // 3D 地球最大支持放大到多少级
  10. const tilesMaxLevel = 18;
  11. // 适配器地址
  12. // const adapterUrl = "http://10.155.32.4:8011/";
  13. // 切换模块时是否提示当前模块名称(用于对内介绍项目时便捷显示模块名称)
  14. const showModuleName = 0;
  15. const reportBaseUrl = "http://10.127.7.241:8083";
  16. // const reportBaseUrl = "http://172.16.12.101:8083";
  17. const baseReportUrl = "http://10.127.7.196";
  18. // const baseReportUrl = "http://172.16.12.101";
  19. // if (localTest) {
  20. // baseURL = "http://192.168.10.8:9002/" // 联机调试
  21. // } else {
  22. // baseURL = "http://10.155.32.14:9002/" // 正式环境
  23. // }
  24. websocketUrl = (baseURL.replace(/http:\/\/|https:\/\//g, "")) + "gyee-websocket";
  25. window.__MODE__ = {
  26. baseURL,
  27. websocketUrl,
  28. // adapterUrl,
  29. tilesUrl,
  30. tilesMaxLevel,
  31. showModuleName,
  32. reportBaseUrl,
  33. baseReportUrl
  34. };
  35. export default {
  36. baseURL,
  37. websocketUrl,
  38. // adapterUrl,
  39. tilesUrl,
  40. tilesMaxLevel,
  41. showModuleName,
  42. reportBaseUrl,
  43. baseReportUrl
  44. };