Browse Source

fix: panoprefix

xzw 8 months ago
parent
commit
7d763d03bb
1 changed files with 6 additions and 4 deletions
  1. 6 4
      src/sdk/cover/index.js

+ 6 - 4
src/sdk/cover/index.js

@@ -26,7 +26,7 @@ let cesAspect
 
 
 
-export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOSSRoot }) => {
+export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOSSRoot, panoOSSRoot }) => {
     
     console.warn('新的页面')
     Potree.settings.isOfficial = true //标记为正式、非测试版本 
@@ -61,11 +61,13 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
     if(laserRoot != void 0){
         Potree.settings.urls.prefix = laserRoot
     }
-    //laserOSSRoot = 'https://192.168.0.25/laser-data'
+     
     if(laserOSSRoot != void 0){
-        Potree.settings.urls.prefix1 /* = Potree.settings.urls.prefix3  */= laserOSSRoot 
+        Potree.settings.urls.prefix1 = laserOSSRoot 
+    }
+    if(panoOSSRoot != void 0){
+        Potree.settings.urls.prefix3 = panoOSSRoot
     }
-    
     
     
     const mapBus = mitt(), sceneBus = mitt()