<template>
    <div class="zhanlan">
      <iframe v-if="currentScene" :src="`https://gdbwg.4dage.com${currentScene.filePath}/wwwroot/spg.html?m=${currentScene.fileName.replace('.zip','')}`" frameborder="0"></iframe>
    </div>
</template>

<script setup>
import { ref, reactive, onMounted, watch, computed, nextTick } from "vue";

import { getExhibitionDetail } from "@/config/api";

import { useRouter, useRoute } from "vue-router";

const route = useRoute();

const currentScene = ref(null)

getExhibitionDetail({id:route.params.id},data=>{
  currentScene.value = data.data
})
  
</script>

<style lang="scss" scoped>
.zhanlan{
  width: 100%;
  >iframe{
    width: 100%;
    height: 100%;
  }
}
</style>