From 91739840eeb8e9bb95bf38bac8e572216b74e060 Mon Sep 17 00:00:00 2001 From: JOJO <1498581755@qq.com> Date: Wed, 6 May 2026 19:19:08 +0800 Subject: [PATCH] =?UTF-8?q?fix(composer):=20=E6=96=AD=E8=BF=9E=E6=97=B6?= =?UTF-8?q?=E7=A6=81=E6=AD=A2=E5=8F=91=E9=80=81=E5=B9=B6=E6=B6=88=E9=99=A4?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=89=A9=E5=B1=95=E8=BF=9F=E6=BB=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/src/app/methods/message.ts | 8 +++++ static/src/components/input/InputComposer.vue | 35 +++++++++++++------ .../styles/components/input/_composer.scss | 5 +-- 3 files changed, 33 insertions(+), 15 deletions(-) diff --git a/static/src/app/methods/message.ts b/static/src/app/methods/message.ts index c042f60..7037ecd 100644 --- a/static/src/app/methods/message.ts +++ b/static/src/app/methods/message.ts @@ -132,6 +132,14 @@ export const messageMethods = { if (this.streamingUi) { return; } + if (!this.isConnected) { + this.uiPushToast({ + title: '连接已断开', + message: '当前无法发送消息,请等待连接恢复后重试', + type: 'warning' + }); + return; + } if (this.mediaUploading) { this.uiPushToast({ title: '上传中', diff --git a/static/src/components/input/InputComposer.vue b/static/src/components/input/InputComposer.vue index ca7a632..3f96fc9 100644 --- a/static/src/components/input/InputComposer.vue +++ b/static/src/components/input/InputComposer.vue @@ -60,11 +60,15 @@ +