diff --git a/zlt-web/pom.xml b/zlt-web/pom.xml
index 9d4db8b5..0c037918 100644
--- a/zlt-web/pom.xml
+++ b/zlt-web/pom.xml
@@ -13,8 +13,6 @@
pom
-
- layui-web
react-web
diff --git a/zlt-web/yingyan/src/pages/map3d/components/MapContainer/3d/hooks/useTilesetLoader.ts b/zlt-web/yingyan/src/pages/map3d/components/MapContainer/3d/hooks/useTilesetLoader.ts
index f9f87898..6b177598 100644
--- a/zlt-web/yingyan/src/pages/map3d/components/MapContainer/3d/hooks/useTilesetLoader.ts
+++ b/zlt-web/yingyan/src/pages/map3d/components/MapContainer/3d/hooks/useTilesetLoader.ts
@@ -93,12 +93,12 @@ export const useTilesetLoader = (): UseTilesetLoaderResult => {
});
try {
- // 处理跨域问题:非 localhost 访问时将 CDN URL 转换为代理路径
+ // 处理跨域问题:开发环境 (localhost) 将 CDN URL 转换为代理路径
let tilesetUrl = config.url;
const isLocalhost = window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1';
- if (!isLocalhost && tilesetUrl.includes('minicdn.goflytec.com')) {
+ if (isLocalhost && tilesetUrl.includes('minicdn.goflytec.com')) {
tilesetUrl = tilesetUrl.replace('https://minicdn.goflytec.com', '');
- console.log('[Tileset] 使用代理路径:', tilesetUrl);
+ console.log('[Tileset] 开发环境使用代理路径:', tilesetUrl);
}
// 创建3DTileset - 高清晰度渲染配置