feat(projects): support iframe page with diffrent url of custom route

This commit is contained in:
Soybean
2024-04-25 23:08:38 +08:00
parent 1c3b4734fa
commit da12d4a5cd
10 changed files with 215 additions and 2 deletions

View File

@ -0,0 +1,25 @@
<script setup lang="ts">
import { onActivated, onMounted } from 'vue';
interface Props {
url: string;
}
defineProps<Props>();
onMounted(() => {
console.log('mounted');
});
onActivated(() => {
console.log('activated');
});
</script>
<template>
<div class="h-full">
<iframe id="iframePage" class="size-full" :src="url"></iframe>
</div>
</template>
<style scoped></style>