Browse Source

feat: sycim基础地址 配置化

feature-v1.0.0
邱伟洋 1 month ago
parent
commit
a4a81cf766
  1. 4
      env/.env.development
  2. 3
      env/.env.production
  3. 4
      src/hooks/web/useMap.tsx

4
env/.env.development

@ -9,3 +9,7 @@ VITE_GLOB_API_URL= /api
# VR标签跳转路径 # VR标签跳转路径
VITE_VR_APPLICATION_NAME="/vr-manager-ui" VITE_VR_APPLICATION_NAME="/vr-manager-ui"
# sycim基础地址
VITE_GLOB_SYCIM_BASEURL=/sgcyy-slgcyxgl/resources/

3
env/.env.production

@ -10,3 +10,6 @@ VITE_GLOB_API_URL= /sgcyy-slgcyxgl/api
# VR标签跳转路径 # VR标签跳转路径
VITE_VR_APPLICATION_NAME="/vr-manager-ui" VITE_VR_APPLICATION_NAME="/vr-manager-ui"
# sycim基础地址
VITE_GLOB_SYCIM_BASEURL=/sgcyy-slgcyxgl/resources/

4
src/hooks/web/useMap.tsx

@ -6,7 +6,9 @@ import { useViewer } from "@/hooks/web/useViewer";
import createGuid from "@/utils/uuid"; import createGuid from "@/utils/uuid";
import router from "@/router"; import router from "@/router";
import { useUtils } from "@/hooks/web/useUtils"; import { useUtils } from "@/hooks/web/useUtils";
SyCim.config.baseUrl = "./resources/";
SyCim.config.baseUrl = import.meta.env.VITE_GLOB_SYCIM_BASEURL;
// 弹框图层 // 弹框图层
let divLayer: SyCim.HtmlLayer; let divLayer: SyCim.HtmlLayer;

Loading…
Cancel
Save