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 @@ +