1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- // 本地联调开关
- const localTest = false;
- // 服务器地址
- let baseURL = "/current/"; // 正式环境
- // websocket 服务器地址
- let websocketUrl = null;
- // 3D 地球瓦片路径
- let tilesUrl = null;
- // 3D 地球最大支持放大到多少级
- const tilesMaxLevel = 18;
- // 允许跳过登录进入其他路由
- const skipLogin = false;
- // 适配器地址
- // const adapterUrl = "http://10.155.32.4:8011/";
- // 切换模块时是否提示当前模块名称(用于对内介绍项目时便捷显示模块名称)
- const showModuleName = 0;
- // const reportBaseUrl = "http://10.127.7.241:8083";
- const reportBaseUrl = "http://172.16.12.101:8083";
- // const baseReportUrl = "http://10.127.7.196";
- const baseReportUrl = "http://172.16.12.101";
- // 是否隐藏控制台打印的 log info warn 信息
- const hideLog = false;
- // 是否隐藏控制台打印的 error 信息
- const hideError = false;
- if (hideLog || hideError) {
- const c = window?.console || {};
- const replaceFun = () => { };
- if (hideLog) {
- c.warn = c.info = c.log = replaceFun;
- }
- if (hideError) {
- c.error = replaceFun;
- }
- }
- // if (localTest) {
- // baseURL = "http://192.168.10.8:9002/" // 联机调试
- // } else {
- // baseURL = "http://10.155.32.14:9002/" // 正式环境
- // }
- websocketUrl = (baseURL.replace(/http:\/\/|https:\/\//g, "")) + "gyee-websocket";
- window.__MODE__ = {
- baseURL,
- websocketUrl,
- // adapterUrl,
- tilesUrl,
- tilesMaxLevel,
- showModuleName,
- reportBaseUrl,
- baseReportUrl,
- skipLogin
- };
- export default {
- baseURL,
- websocketUrl,
- // adapterUrl,
- tilesUrl,
- tilesMaxLevel,
- showModuleName,
- reportBaseUrl,
- baseReportUrl,
- skipLogin
- };
|