xzw 1 rok temu
rodzic
commit
f123a9bcd8
1 zmienionych plików z 3 dodań i 2 usunięć
  1. 3 2
      src/sdk/cover/index.js

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

@@ -18,8 +18,9 @@ export const enter = (dom, mapDom, isLocal, lonlat) => {
     
     
     {//改为本地版
-        for(let i in Potree.settings.urls) Potree.settings.urls[i] = ''
-        Potree.settings.urls.prefix = ''   
+        
+        for(let i in Potree.settings.urls) Potree.settings.urls[i] = window.location.origin
+        Potree.settings.urls.prefix = window.location.origin
     }