From 6c7ccbeb4446b3f36ef96c1dc63b90479aeaa8a7 Mon Sep 17 00:00:00 2001 From: LCJ-MinYa <1049468118@qq.com> Date: Fri, 14 Mar 2025 15:32:11 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=B0=8F=E9=97=AE=E9=A2=98=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/demo/sseFetch.vue | 8 +++++++- src/views/utils/htmlToImg.vue | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/views/demo/sseFetch.vue b/src/views/demo/sseFetch.vue index 537a3b9..6a49c8e 100644 --- a/src/views/demo/sseFetch.vue +++ b/src/views/demo/sseFetch.vue @@ -63,7 +63,7 @@ const handleSend = () => { controller.value = new AbortController(); const signal = controller.value.signal; /** @microsoft/fetch-event-source该框架支持POST方法,并且支持传参 */ - fetchEventSource('http://192.168.197.120:3000/events', { + fetchEventSource('http://localhost:3000/events', { method: 'POST', body: JSON.stringify({ question: '你好,我是小雅,请问有什么可以帮助您?', @@ -95,4 +95,10 @@ const handleSend = () => { .wordbox::-webkit-scrollbar { display: none; /* 隐藏滚动条 */ } + +@media screen and (min-width: 768px) { + .wordbox { + width: 400px; + } +} diff --git a/src/views/utils/htmlToImg.vue b/src/views/utils/htmlToImg.vue index 4dc43b7..4169024 100644 --- a/src/views/utils/htmlToImg.vue +++ b/src/views/utils/htmlToImg.vue @@ -202,6 +202,6 @@ const exportImage = () => { } .container { - max-width: 1440px; + max-width: 100%; }