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