|
@@ -5,12 +5,26 @@
|
|
|
<script setup>
|
|
|
import { ref, onMounted, computed, watch, nextTick } from "vue";
|
|
|
import { useStore } from 'vuex'
|
|
|
-import { useApp } from "@/app";
|
|
|
+import { useApp,getApp } from "@/app";
|
|
|
|
|
|
const store = useStore()
|
|
|
|
|
|
const currentScene = computed(() => store.getters["scene/currentScene"]);
|
|
|
|
|
|
+
|
|
|
+const loadScene = async (currentScene)=>{
|
|
|
+ let app = await getApp()
|
|
|
+ console.log(app.krpanoDom.get(`scene[scene_fd720_hhtjj9wye].content`),'currentScene');
|
|
|
+ // app.krpanoDom.get('xml.scene')
|
|
|
+
|
|
|
+ // app.krpanoDom.krpano.call(`skin_loadscene('scene_${sceneCode}',${this.ccs.initVisual.vlookat},${this.ccs.initVisual.hlookat})`);
|
|
|
+}
|
|
|
+
|
|
|
+watch(currentScene,()=>{
|
|
|
+ console.log(currentScene.value,'currentScene.value');
|
|
|
+ loadScene(currentScene.value)
|
|
|
+})
|
|
|
+
|
|
|
useApp().then((app) => {
|
|
|
app.Tags.on("clickHotspot", (data) => {
|
|
|
let { id } = data;
|