From c3cccbb2c8bb2d36bee479ea9c16fa1bc5238bad Mon Sep 17 00:00:00 2001 From: kuaifan Date: Tue, 5 Jul 2022 12:17:36 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=9B=9E=E5=A4=8D=E6=88=96=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=B6=88=E6=81=AF=E5=8F=91=E9=80=81=E6=97=B6=E7=AB=8B?= =?UTF-8?q?=E5=8D=B3=E9=9A=90=E8=97=8F=E5=BC=95=E7=94=A8=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../assets/js/pages/manage/components/DialogWrapper.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/resources/assets/js/pages/manage/components/DialogWrapper.vue b/resources/assets/js/pages/manage/components/DialogWrapper.vue index 33338e74e..17ca214cf 100644 --- a/resources/assets/js/pages/manage/components/DialogWrapper.vue +++ b/resources/assets/js/pages/manage/components/DialogWrapper.vue @@ -738,6 +738,9 @@ export default { key: `msg-${update_id}`, delay: 600 }) + this.replyActiveId = 0; + this.onActive(); + // this.$store.dispatch("call", { url: 'dialog/msg/sendtext', data: { @@ -773,14 +776,15 @@ export default { } this.tempMsgs.push(tempMsg) this.msgType = '' + this.replyActiveId = 0; this.onActive(); this.$nextTick(this.onToBottom) // this.$store.dispatch("call", { url: 'dialog/msg/sendtext', data: { - dialog_id: this.dialogId, - reply_id: this.replyId, + dialog_id: tempMsg.dialog_id, + reply_id: tempMsg.reply_id, text: msgText, }, method: 'post', @@ -1009,6 +1013,7 @@ export default { userid: this.userId, msg: { }, }) + this.replyActiveId = 0; this.onActive() this.$nextTick(this.onToBottom) break;