<template>
  <ContentWrap>
    <IFrame :src="url" style="width: 100%; height: calc(100vh - 180px)" />
    <!-- <iframe :src="url" frameborder="0" style="width: 100%;height: 75vh;"></iframe> -->
  </ContentWrap>
</template>

<script setup lang="ts">
// const url = ref('http://localhost:12080/jmreport/view/881686740529258496')
const route = useRoute() // 路由对象
const str = route.path.split('/')[3]
const url = ref(import.meta.env.VITE_JMREPORT_BASE_URL + '/jmreport/view/'+ str)
console.log(url);
</script>
