Browse Source
- 在 ModelMain.vue 中添加小凯 AI 的 iframe - 创建 automatedPresentation.vue并添加小凯 AI 的 iframe - 在 automatedPresentation.vue 中添加消息监听器master
2 changed files with 16 additions and 7 deletions
@ -1,12 +1,21 @@ |
|||
<template> |
|||
<div class="modeling-simulation"> |
|||
automatedPresentation.vue |
|||
<iframe class="galaxis-ai" style="width: 100%;height: 100%;border: none;" src="http://localhost:5906/#/chat"></iframe> |
|||
</div> |
|||
</template> |
|||
<script setup> |
|||
<script setup lang="ts"> |
|||
import { onMounted, onUnmounted } from "vue"; |
|||
|
|||
function mes(event: MessageEvent) { |
|||
console.log('data', event.data); |
|||
} |
|||
|
|||
onMounted(() => window.addEventListener('message', mes)); |
|||
onUnmounted(() => window.removeEventListener('message', mes)); |
|||
</script> |
|||
<style lang="less"> |
|||
.dashboard{ |
|||
|
|||
.modeling-simulation { |
|||
width: 100%; |
|||
height: 100%; |
|||
} |
|||
</style> |
|||
|
|||
Loading…
Reference in new issue