modeConfig.js 1.2 KB

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