Sfoglia il codice sorgente

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

xzw 8 mesi fa
parent
commit
0b42632707
4 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. 3 1
      .env
  2. 1 0
      src/model/platform.ts
  3. 1 0
      src/sdk/sdk.ts
  4. 1 0
      src/vite-env.d.ts

+ 3 - 1
.env

@@ -1,2 +1,4 @@
 VITE_LASER_HOST=
-VITE_LASER_OSS=/laser-data
+VITE_LASER_OSS=/laser-data
+VITE_PANO_OSS=/laser-data
+

+ 1 - 0
src/model/platform.ts

@@ -39,6 +39,7 @@ export async function modelSDKFactory(
     if (!fuseInitialed) {
       await initialSDK({
         laserRoot: import.meta.env.VITE_LASER_HOST,
+        panoOSSRoot: import.meta.env.VITE_PANO_OSS,
         laserOSSRoot: import.meta.env.VITE_LASER_OSS,
         layout: dom,
         scenes: scenes.value,

+ 1 - 0
src/sdk/sdk.ts

@@ -338,6 +338,7 @@ export let sdk: SDK;
 export type InialSDKProps = {
   laserRoot?: string
   laserOSSRoot?: string
+  panoOSSRoot?: string
   layout: HTMLDivElement;
   scenes: Scene[];
   lonlat?: number[];

+ 1 - 0
src/vite-env.d.ts

@@ -9,6 +9,7 @@ declare module '*.vue' {
 interface ImportMetaEnv {
   readonly VITE_LASER_HOST: string
   readonly VITE_LASER_OSS: string
+  readonly VITE_PANO_OSS: string
 }
 
 declare const offline: boolean