modeConfig.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. // if (localTest) {
  17. // baseURL = "http://192.168.10.8:9002/" // 联机调试
  18. // } else {
  19. // baseURL = "http://10.155.32.14:9002/" // 正式环境
  20. // }
  21. websocketUrl = (baseURL.replace(/http:\/\/|https:\/\//g, "")) + "gyee-websocket";
  22. window.__MODE__ = {
  23. baseURL,
  24. websocketUrl,
  25. // adapterUrl,
  26. tilesUrl,
  27. tilesMaxLevel,
  28. showModuleName,
  29. reportBaseUrl
  30. };
  31. export default {
  32. baseURL,
  33. websocketUrl,
  34. // adapterUrl,
  35. tilesUrl,
  36. tilesMaxLevel,
  37. showModuleName,
  38. reportBaseUrl
  39. }