From d7a296b8d917abf820f0034e4b94fad302f72889 Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期一, 15 七月 2024 16:34:11 +0800 Subject: [PATCH] 嵌入页面 --- src/components/chat/chatComponents/htmlCom/HTMLCom.vue | 12 +++++++++++- src/components/chat/chatComponents/summaryCom/SummaryCom.vue | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/components/chat/chatComponents/htmlCom/HTMLCom.vue b/src/components/chat/chatComponents/htmlCom/HTMLCom.vue index 21cc3a0..1b1586a 100644 --- a/src/components/chat/chatComponents/htmlCom/HTMLCom.vue +++ b/src/components/chat/chatComponents/htmlCom/HTMLCom.vue @@ -1,5 +1,15 @@ <template> - <iframe ref="iframeRef" :src="data" class="w-full border-none" /> + <iframe + ref="iframeRef" + :src="data" + width="100%" + frameborder="no" + border="0" + marginwidth="0" + marginheight="0" + scrolling="no" + height="370" + /> </template> <script setup lang="ts"> diff --git a/src/components/chat/chatComponents/summaryCom/SummaryCom.vue b/src/components/chat/chatComponents/summaryCom/SummaryCom.vue index 19a3658..5e45ccb 100644 --- a/src/components/chat/chatComponents/summaryCom/SummaryCom.vue +++ b/src/components/chat/chatComponents/summaryCom/SummaryCom.vue @@ -24,7 +24,7 @@ </div> </div> <div v-if="urlList && urlList.length > 0" class="w-full"> - <HTMLCom data="/test" v-for="(item, index) in urlList" :key="index"></HTMLCom> + <HTMLCom data="http://127.0.0.1:5500/src/views/project/ch/demo/Overview.html" v-for="(item, index) in urlList" :key="index"></HTMLCom> </div> </template> <div v-else class="text-red-500">{{ error }}</div> -- Gitblit v1.9.3