From e5e65bb50cbfb973f98191993ab559767eff7a53 Mon Sep 17 00:00:00 2001
From: suerprisePlus <15810472099@163.com>
Date: 星期二, 30 七月 2024 17:06:34 +0800
Subject: [PATCH] 页面添加(知识图谱,数据统计,数据分析,站点管理)

---
 public/config/config.js |   35 +++++++++++++++++++++++++++++++++--
 1 files changed, 33 insertions(+), 2 deletions(-)

diff --git a/public/config/config.js b/public/config/config.js
index e917262..0abac97 100644
--- a/public/config/config.js
+++ b/public/config/config.js
@@ -1,8 +1,39 @@
 console.log(location);
 const host = location.origin;
+const isWeb = false;
+var isUrl = isWeb ? "103.135.160.14" : "192.168.11.24";
+// api绔彛
+const apiHost = isWeb ? isUrl + "" : isUrl + ":12316";
+// 閰嶇綉绔彛
+const peiWangHost = isWeb ? isUrl + "" : isUrl + ":8101";
+// GeoServer绔彛
+const geoHost = isWeb ? isUrl + "" : isUrl + ":9055";
+// {host}鏇挎崲
+const iisHost = isWeb ? isUrl + ":9036" : "localhost:80";
+// 鐭ヨ瘑鍥捐氨绔彛
+const kgHost = isWeb ? isUrl + ":9036" : isUrl + ":8080";
+// 鏁版嵁鍒嗘瀽绔彛
+const pyHost = isWeb ? isUrl + ":9036" : isUrl + ":8000";
 
+//閰嶇疆
 const config = {
-  apiServices: "http://192.168.11.24:12316/server/",
+  // server鏈嶅姟
+  apiServices: "http://" + apiHost + "/server/",
+  // 鐭ヨ瘑鍥捐氨鏈嶅姟
+  kgServices: "http://" + kgHost,
+  // 閰嶇綉鏈嶅姟
+  peiWangServices: "http://" + peiWangHost + "/peiwang/",
+  //鏁版嵁鍒嗘瀽鎺ュ彛
+  pyServices: "http://" + pyHost + "/py",
   imageUrl: "",
-  sdkImg: host+"/visual/CimSDK/"
+  // sdk鏄剧ず
+  sdkImg: host + "/visual/CimSDK/",
+  // 澶╁湴鍥�
+  tdToken: "94a34772eb88317fcbf8428e10448561",
+  // geoServer鏈嶅姟
+  geoServer: {
+    url: "http://" + geoHost + "/geoserver/sxpw",
+    wms: "/wms",
+    wfs: ""
+  }
 };

--
Gitblit v1.9.3