xzw před 7 měsíci
rodič
revize
426ae70987
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      src/sdk/cover/index.js

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

@@ -91,7 +91,8 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
         
         
     }
     }
     if(laserRoot != void 0){ 
     if(laserRoot != void 0){ 
-        Potree.settings.urls.prefix = Potree.settings.urls.handlePrefix(laserRoot)
+        laserRoot.slice(-1) == '/' && (laserRoot = laserRoot.slice(0,-1)) //去掉最后一个'/'
+        Potree.settings.urls.prefix = laserRoot
     }
     }
      
      
     if(laserOSSRoot != void 0){
     if(laserOSSRoot != void 0){