Merge pull request 'feat: 设备管理添加经纬度以及高度和租户' (#19) from feature_dzc into prod
Reviewed-on: http://220.205.16.27:18081/goflytec/GoFly-platform-services/pulls/19
This commit is contained in:
+3
-3
@@ -93,12 +93,12 @@ export const useTilesetLoader = (): UseTilesetLoaderResult => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// 处理跨域问题:非 localhost 访问时将 CDN URL 转换为代理路径
|
// 处理跨域问题:开发环境 (localhost) 将 CDN URL 转换为代理路径
|
||||||
let tilesetUrl = config.url;
|
let tilesetUrl = config.url;
|
||||||
const isLocalhost = window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1';
|
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', '');
|
tilesetUrl = tilesetUrl.replace('https://minicdn.goflytec.com', '');
|
||||||
console.log('[Tileset] 使用代理路径:', tilesetUrl);
|
console.log('[Tileset] 开发环境使用代理路径:', tilesetUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 创建3DTileset - 高清晰度渲染配置
|
// 创建3DTileset - 高清晰度渲染配置
|
||||||
|
|||||||
Reference in New Issue
Block a user