From a4a81cf76653c2094b27ff0a162cc2bf147ca56b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E4=BC=9F=E6=B4=8B?= Date: Thu, 13 Mar 2025 20:38:24 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20sycim=E5=9F=BA=E7=A1=80=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=20=E9=85=8D=E7=BD=AE=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- env/.env.development | 4 ++++ env/.env.production | 3 +++ src/hooks/web/useMap.tsx | 4 +++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/env/.env.development b/env/.env.development index 57bbe55..e92099e 100644 --- a/env/.env.development +++ b/env/.env.development @@ -9,3 +9,7 @@ VITE_GLOB_API_URL= /api # VR标签跳转路径 VITE_VR_APPLICATION_NAME="/vr-manager-ui" + + +# sycim基础地址 +VITE_GLOB_SYCIM_BASEURL=/sgcyy-slgcyxgl/resources/ diff --git a/env/.env.production b/env/.env.production index dc2ec2a..d353ed5 100644 --- a/env/.env.production +++ b/env/.env.production @@ -10,3 +10,6 @@ VITE_GLOB_API_URL= /sgcyy-slgcyxgl/api # VR标签跳转路径 VITE_VR_APPLICATION_NAME="/vr-manager-ui" + +# sycim基础地址 +VITE_GLOB_SYCIM_BASEURL=/sgcyy-slgcyxgl/resources/ \ No newline at end of file diff --git a/src/hooks/web/useMap.tsx b/src/hooks/web/useMap.tsx index b2ae559..7ff10ed 100644 --- a/src/hooks/web/useMap.tsx +++ b/src/hooks/web/useMap.tsx @@ -6,7 +6,9 @@ import { useViewer } from "@/hooks/web/useViewer"; import createGuid from "@/utils/uuid"; import router from "@/router"; import { useUtils } from "@/hooks/web/useUtils"; -SyCim.config.baseUrl = "./resources/"; + +SyCim.config.baseUrl = import.meta.env.VITE_GLOB_SYCIM_BASEURL; + // 弹框图层 let divLayer: SyCim.HtmlLayer; From aa7db3bc74d0942ce1a0a78d65e6f9c69a42ead9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E4=BC=9F=E6=B4=8B?= Date: Thu, 13 Mar 2025 21:13:23 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20sycim=E5=9F=BA=E7=A1=80=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=20=E9=85=8D=E7=BD=AE=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/web/useMap.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hooks/web/useMap.tsx b/src/hooks/web/useMap.tsx index 7ff10ed..21d4fe3 100644 --- a/src/hooks/web/useMap.tsx +++ b/src/hooks/web/useMap.tsx @@ -7,7 +7,8 @@ import createGuid from "@/utils/uuid"; import router from "@/router"; import { useUtils } from "@/hooks/web/useUtils"; -SyCim.config.baseUrl = import.meta.env.VITE_GLOB_SYCIM_BASEURL; +SyCim.config.baseUrl = "./resources/"; +//import.meta.env.VITE_GLOB_SYCIM_BASEURL; // 弹框图层 let divLayer: SyCim.HtmlLayer;