From 68df4582c1edaf1952e6c21d769981e348fb3d04 Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期四, 20 二月 2025 18:00:29 +0800 Subject: [PATCH] 流输出 --- src/components/chat/chatComponents/htmlCom/HTMLCom.vue | 29 +++++++++++++++++------------ 1 files changed, 17 insertions(+), 12 deletions(-) diff --git a/src/components/chat/chatComponents/htmlCom/HTMLCom.vue b/src/components/chat/chatComponents/htmlCom/HTMLCom.vue index 21cc3a0..d6e2cb8 100644 --- a/src/components/chat/chatComponents/htmlCom/HTMLCom.vue +++ b/src/components/chat/chatComponents/htmlCom/HTMLCom.vue @@ -1,19 +1,24 @@ <template> - <iframe ref="iframeRef" :src="data" class="w-full border-none" /> + <IframeResizer + class="iframe-resizer" + license="GPLv3" + :src="data.url" + width="100%" + frameborder="no" + border="0" + marginwidth="0" + marginheight="0" + scrolling="no" + + /> </template> <script setup lang="ts"> -import { onMounted, ref } from 'vue'; -import { Local, WinLoginInfo } from '/@/utils/storage'; -import { accessSessionKey, userNameKey } from '/@/utils/request'; - -defineProps(['data']); +import IframeResizer from '@iframe-resizer/vue/iframe-resizer.vue'; +import { ref } from 'vue'; +import { chatComProps } from '../common'; const iframeRef = ref<HTMLIFrameElement>(null); -onMounted(() => { - iframeRef.value.onload = () => { - iframeRef.value.contentWindow.localStorage; - // WinLoginInfo.set(Local.get(accessSessionKey), Local.get(userNameKey), iframeRef.value.contentWindow); - }; -}); + +const props = defineProps(chatComProps); </script> <style scoped lang="scss"></style> -- Gitblit v1.9.3