<!--
 * @Author: 曹文丽 caowenli@yuan-info.com
 * @Date: 2023-09-11 10:41:01
 * @LastEditors: 曹文丽 caowenli@yuan-info.com
 * @LastEditTime: 2023-09-12 14:44:26
 * @FilePath: \yuan-asset-module-browser\src\views\collection\assetsFound\recordPreview.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <iframe class="iframeReportPreview" :src="url"></iframe>
</template>

<script lang="ts" setup>
import { ref, onUpdated, onMounted } from 'vue'
import { useRoute } from 'vue-router';
const route = useRoute();
let url = ref(null)
onMounted(() => {
  const { reportUrl} = route.query
  url.value = reportUrl
})
onUpdated(() => {
  const { reportUrl} = route.query
  url.value = reportUrl
})
</script>

<style lang="scss" scoped>
.iframeReportPreview {
  width: 100%;
  height: 100%;
  border: none;
}
</style>