소스 검색

fix: gltf里的引用路径

xzw 2 년 전
부모
커밋
a413676e5f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/sdk/cover/index.js

+ 1 - 1
src/sdk/cover/index.js

@@ -7,7 +7,7 @@ export const enter = (dom, isLocal) => {
     
     
     Potree.settings.isOfficial = true //标记为正式、非测试版本 
     Potree.settings.isOfficial = true //标记为正式、非测试版本 
     //Potree.fileServer = axios 
     //Potree.fileServer = axios 
-    Potree.settings.libsUrl = '../lib/'
+    Potree.settings.libsUrl = isLocal ? '' : '../lib/'
     
     
     Potree.settings.notAdditiveBlending = true
     Potree.settings.notAdditiveBlending = true