Merge pull request 'feature_dzc' (#20) from feature_dzc into test
Reviewed-on: http://220.205.16.27:18081/goflytec/GoFly-platform-services/pulls/20
This commit is contained in:
@@ -13,8 +13,6 @@
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<modules>
|
||||
<!-- Layui开发的前端 -->
|
||||
<module>layui-web</module>
|
||||
<!-- React开发的前端(Ant Design) -->
|
||||
<module>react-web</module>
|
||||
</modules>
|
||||
|
||||
+3
-3
@@ -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 - 高清晰度渲染配置
|
||||
|
||||
Reference in New Issue
Block a user