gemercheung 1 rok pred
rodič
commit
154f87f2fc
1 zmenil súbory, kde vykonal 4 pridanie a 1 odobranie
  1. 4 1
      src/views/exhibition-detail.vue

+ 4 - 1
src/views/exhibition-detail.vue

@@ -68,7 +68,10 @@ const typeLabel = computed(() => (type) => {
 
 const handleVRButton = (id) => {
   // const url = `https://sit-qiushoubwg.4dage.com/scene/index.html#/?m=1196`;
-  const id = router.push(`/model-viewer/1196`);
+  console.log("VR-scene", id);
+  if (id) {
+    router.push(`/model-viewer/${id}`);
+  }
 };
 const props = defineProps({
   id: {