From 8b8f88d7d8d713a1355d9849f467e3a2dc0c22fe Mon Sep 17 00:00:00 2001
From: Surpriseplus <845948745@qq.com>
Date: 星期二, 05 九月 2023 14:50:26 +0800
Subject: [PATCH] 配置文件修改

---
 public/config/config.js |   27 ++++++++++++++++++++++++---
 1 files changed, 24 insertions(+), 3 deletions(-)

diff --git a/public/config/config.js b/public/config/config.js
index f6a3fee..b4f5ec7 100644
--- a/public/config/config.js
+++ b/public/config/config.js
@@ -1,5 +1,26 @@
-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.83' + ":8888";
+//閰嶇疆鏂囦欢鍦板潃
+const config = {
+  mapMoon: webUrl + "/mapscreen/index.html",
+  //妞悆浣撳垵濮嬪寲鍔犺浇鍥剧墖
+  imgUrl: "Workers/image/earth.jpg",
+  //license璁稿彲
+  licenseServer: "http://183.162.245.49:18080",
+  //SDK璁稿彲
+  StaticFileBaseUrl: webUrl + "/CIMSDK/",
 
-var isWeb = location.hostname.indexOf("103.85.165.") > -1;
\ No newline at end of file
+  proxy: "http://" + webHost + "/MoonServer",
+
+  BASE_URL: "http://" + webHost + "/MoonServer",
+  conditions: [
+    ["=", "<>", "like"],
+    [">=", ">", " =", "<=", "<", "<>"],
+    [">=", ">", " =", "<=", "<", "<>"],
+  ],
+};
+export default config;

--
Gitblit v1.9.3