From 19a4741002f4208bf7fc951cbf3219897af5699a Mon Sep 17 00:00:00 2001 From: surprise <15810472099@163.com> Date: 星期四, 26 十月 2023 16:41:22 +0800 Subject: [PATCH] 标绘查询修改 --- public/config/config.js | 28 +++++++++++++++++++++++++--- 1 files changed, 25 insertions(+), 3 deletions(-) diff --git a/public/config/config.js b/public/config/config.js index f6a3fee..2559267 100644 --- a/public/config/config.js +++ b/public/config/config.js @@ -1,5 +1,27 @@ -const BASE_URL = "http://192.168.20.83:8088/MoonServer/"; //鍚庣鎺ュ彛鍦板潃 -// const BASE_URL = "http://192.168.20.106:9000/MoonServer/"; //鍚庣鎺ュ彛鍦板潃 +//鏄惁涓虹敓浜х幆澧� +var isWeb = location.hostname.indexOf("103.85.165.") > -1; +//鏄惁涓虹敓浜х幆澧� +const webUrl = location.href.indexOf("/web") > -1 ? "/web" : ""; +// var webHost = isWeb ? "103.85.165.99" + ":28888" : '192.168.20.106' + ":9000"; +var webHost = isWeb ? "103.85.165.99" + ":28888" : '192.168.20.83' + ":8888"; +// var webHost = isWeb ? "103.85.165.99" + ":28888" : '100.10.1.169' + ":8088"; +// WebSocket 鏈嶅姟鍦板潃 +var socketUrl = 'ws://' + webHost + '/MoonServer/ws/select'; +//閰嶇疆鏂囦欢鍦板潃 +const config = { + mapMoon: webUrl + "/mapscreen/index.html", -var isWeb = location.hostname.indexOf("103.85.165.") > -1; \ No newline at end of file + //SDK璁稿彲 + StaticFileBaseUrl: webUrl + "/WebSDK/", + + proxy: "http://" + webHost + "/MoonServer", + + BASE_URL: "http://" + webHost + "/MoonServer", + + conditions: [ + ["=", "<>", "like"], + [">=", ">", " =", "<=", "<", "<>"], + [">=", ">", " =", "<=", "<", "<>"], + ], +}; -- Gitblit v1.9.3