From a31655ccc56220ee027c22927a9bd55430d2a210 Mon Sep 17 00:00:00 2001
From: Surpriseplus <845948745@qq.com>
Date: 星期五, 25 八月 2023 17:48:18 +0800
Subject: [PATCH] 配置文件修改,图层对比修改

---
 src/assets/js/Map/config.js |   19 ++++++++-----------
 1 files changed, 8 insertions(+), 11 deletions(-)

diff --git a/src/assets/js/Map/config.js b/src/assets/js/Map/config.js
index 7eccce8..b4f5ec7 100644
--- a/src/assets/js/Map/config.js
+++ b/src/assets/js/Map/config.js
@@ -1,7 +1,9 @@
 //鏄惁涓虹敓浜х幆澧�
-const isWeb = true;
+var isWeb = location.hostname.indexOf("103.85.165.") > -1;
 //鏄惁涓虹敓浜х幆澧�
-const webUrl = isWeb ? "/web" : "";
+const webUrl = location.href.indexOf("/web") > -1 ? "/web" : "";
+
+var webHost = isWeb ? "103.85.165.99" + ":28888" : '192.168.20.83' + ":8888";
 //閰嶇疆鏂囦欢鍦板潃
 const config = {
   mapMoon: webUrl + "/mapscreen/index.html",
@@ -11,15 +13,10 @@
   licenseServer: "http://183.162.245.49:18080",
   //SDK璁稿彲
   StaticFileBaseUrl: webUrl + "/CIMSDK/",
-  //tmsserver
-  moonTms: "http://172.16.2.10:50001/sj_raster/v6/service/10003901/1/tms.xml",
-  //Wmtsserver
-  moonWmts:
-    "http://172.16.2.10:50001/sj_raster/v6/wmts/service/system/10000201/3?ak=mf72ff9295c740ec0f37e61433e8a3ad8d&srs=ESRI:104903",
-  proxy: "http://192.168.20.83:8088/MoonServer",
-  //鍦板舰
-  moonTerrain: "http://172.16.2.10:50001/sj_raster/v6/terrain_mesh/10013901/45",
-  BASE_URL: "http://192.168.20.83:8088/MoonServer",
+
+  proxy: "http://" + webHost + "/MoonServer",
+
+  BASE_URL: "http://" + webHost + "/MoonServer",
   conditions: [
     ["=", "<>", "like"],
     [">=", ">", " =", "<=", "<", "<>"],

--
Gitblit v1.9.3