Browse Source

Merge branch 'v1.7.0-local' of http://192.168.0.115:3000/bill/fuse-code into v1.7.0-local

xzw 9 months ago
parent
commit
f00eda6e9b
2 changed files with 5 additions and 0 deletions
  1. 2 0
      src/model/platform.ts
  2. 3 0
      src/sdk/sdk.ts

+ 2 - 0
src/model/platform.ts

@@ -39,6 +39,8 @@ export async function modelSDKFactory(
     if (!fuseInitialed) {
       await initialSDK({
         layout: dom,
+        panoBasePath: '',
+        cloudBasePath: '',
         scenes: scenes.value,
         lonlat: center,
       });

+ 3 - 0
src/sdk/sdk.ts

@@ -199,6 +199,8 @@ export type InialSDKProps = {
   layout: HTMLDivElement;
   scenes: Scene[];
   lonlat?: number[];
+  panoBasePath: string,
+  cloudBasePath: string,
 };
 
 export let initialed = false;
@@ -222,6 +224,7 @@ export const initialSDK = async (props: InialSDKProps) => {
 
   console.log(props);
   const localSdk = cover({
+    ...props,
     dom: props.layout,
     isLocal: false,
     scenes: props.scenes,