2024-04-28 14:06:34 +08:00
|
|
|
<script setup lang="ts">
|
|
|
|
|
import { onActivated, onMounted } from 'vue';
|
|
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
|
url: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
defineProps<Props>();
|
|
|
|
|
|
|
|
|
|
onMounted(() => {
|
2024-06-07 10:20:29 +08:00
|
|
|
// console.log('mounted');
|
2024-04-28 14:06:34 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
onActivated(() => {
|
2024-06-07 10:20:29 +08:00
|
|
|
// console.log('activated');
|
2024-04-28 14:06:34 +08:00
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<div class="h-full">
|
|
|
|
|
<iframe id="iframePage" class="size-full" :src="url"></iframe>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<style scoped></style>
|