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%; }