Browse Source

fix:@成员无效的bug

master
xsx 1 year ago
parent
commit
b535fe1bbd
  1. 7
      im-uniapp/pages/chat/chat-box.vue

7
im-uniapp/pages/chat/chat-box.vue

@ -264,14 +264,12 @@ export default {
success: (e) => { success: (e) => {
// //
this.editorCtx.clear(); this.editorCtx.clear();
this.atUserIds = [];
this.isReceipt = false;
// //
if (this.isBanned) { if (this.isBanned) {
this.showBannedTip(); this.showBannedTip();
return; return;
} }
let sendText = this.isReceipt ? "【回执消息】" : ""; let sendText = "";
e.delta.ops.forEach((op) => { e.delta.ops.forEach((op) => {
if (op.insert.image) { if (op.insert.image) {
// emo // emo
@ -295,6 +293,9 @@ export default {
receipt: this.isReceipt, receipt: this.isReceipt,
type: 0 type: 0
} }
// @
this.atUserIds = [];
this.isReceipt = false;
// id // id
this.fillTargetId(msgInfo, this.chat.targetId); this.fillTargetId(msgInfo, this.chat.targetId);
this.sendMessageRequest(msgInfo).then((m) => { this.sendMessageRequest(msgInfo).then((m) => {

Loading…
Cancel
Save