shaogen1995 1 gadu atpakaļ
vecāks
revīzija
7d1a6bd6e7
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      code/src/components/KrpanoCom/index.tsx

+ 2 - 1
code/src/components/KrpanoCom/index.tsx

@@ -3,6 +3,7 @@ import styles from "./index.module.scss";
 import { HotSpot, Krpano } from "@dage/krpano";
 import { HotSpot, Krpano } from "@dage/krpano";
 import { Tab2InfoType } from "@/types";
 import { Tab2InfoType } from "@/types";
 import classNames from "classnames";
 import classNames from "classnames";
+import { modelUrl } from "@/utils/history";
 
 
 type Props = {
 type Props = {
   curScene: string;
   curScene: string;
@@ -24,7 +25,7 @@ function KrpanoCom({
   return (
   return (
     <Krpano
     <Krpano
       className={styles.villageKrpano}
       className={styles.villageKrpano}
-      xml="/scene.xml"
+      xml={`${modelUrl}scene.xml`}
       currentScene={curScene}
       currentScene={curScene}
     >
     >
       {curVillage.map((item, index) => {
       {curVillage.map((item, index) => {