From 30e393df7b1d89c4172a7f4bec6e80e2dc00c373 Mon Sep 17 00:00:00 2001 From: suerprisePlus <15810472099@163.com> Date: 星期一, 05 八月 2024 10:14:49 +0800 Subject: [PATCH] 语义功能添加 --- public/config/config.js | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 52 insertions(+), 1 deletions(-) diff --git a/public/config/config.js b/public/config/config.js index a46bb66..433690e 100644 --- a/public/config/config.js +++ b/public/config/config.js @@ -1 +1,52 @@ -console.log(location) \ No newline at end of file +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"; +//rag绔彛 +const ragHost = isWeb ? isUrl + ":9036" : "192.168.11.95:8080"; +// 鏈湴鏁版嵁鍦板潃 +const pwythHost = "http://localhost/pwyth"; +//閰嶇疆 +const config = { + // server鏈嶅姟 + apiServices: "http://" + apiHost + "/server/", + // 鐭ヨ瘑鍥捐氨鏈嶅姟 + kgServices: "http://" + kgHost, + // 閰嶇綉鏈嶅姟 + peiWangServices: "http://" + peiWangHost + "/peiwang/", + //鏁版嵁鍒嗘瀽鎺ュ彛 + pyServices: "http://" + pyHost + "/py", + //rag鏈嶅姟鍦板潃 + ragServices: "http://" + ragHost+ "/api/vi", + imageUrl: "", + // sdk鏄剧ず + sdkImg: host + "/visual/CimSDK/", + // 澶╁湴鍥� + tdToken: "94a34772eb88317fcbf8428e10448561", + // geoServer鏈嶅姟 + geoServer: { + url: "http://" + geoHost + "/geoserver/sxpw", + wms: "/wms", + wfs: "" + }, + //鍦颁笅鏁版嵁 + terrain: { + isShow: false, + isUrl: pwythHost + "/terrain/" + }, + domTilesets: { + url: pwythHost + "/qingxie/tileset.json" + }, +}; -- Gitblit v1.9.3