From b535fe1bbd378ac1d6cf34d90483c60e3b352de5 Mon Sep 17 00:00:00 2001 From: xsx <825657193@qq.com> Date: Thu, 13 Feb 2025 18:40:18 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A@=E6=88=90=E5=91=98=E6=97=A0?= =?UTF-8?q?=E6=95=88=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- im-uniapp/pages/chat/chat-box.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/im-uniapp/pages/chat/chat-box.vue b/im-uniapp/pages/chat/chat-box.vue index d9d9878..82c313c 100644 --- a/im-uniapp/pages/chat/chat-box.vue +++ b/im-uniapp/pages/chat/chat-box.vue @@ -264,14 +264,12 @@ export default { success: (e) => { // 清空编辑框数据 this.editorCtx.clear(); - this.atUserIds = []; - this.isReceipt = false; // 检查是否被封禁 if (this.isBanned) { this.showBannedTip(); return; } - let sendText = this.isReceipt ? "【回执消息】" : ""; + let sendText = ""; e.delta.ops.forEach((op) => { if (op.insert.image) { // emo表情 @@ -295,6 +293,9 @@ export default { receipt: this.isReceipt, type: 0 } + // 清空@成员和回执标记 + this.atUserIds = []; + this.isReceipt = false; // 填充对方id this.fillTargetId(msgInfo, this.chat.targetId); this.sendMessageRequest(msgInfo).then((m) => {