From d23bff5a4877107ef8618147182a52a04008a85b Mon Sep 17 00:00:00 2001 From: kuaifan Date: Fri, 15 Jul 2022 14:38:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BC=96=E8=BE=91@=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../assets/js/pages/manage/components/DialogWrapper.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/assets/js/pages/manage/components/DialogWrapper.vue b/resources/assets/js/pages/manage/components/DialogWrapper.vue index 645bcec50..1273c6248 100644 --- a/resources/assets/js/pages/manage/components/DialogWrapper.vue +++ b/resources/assets/js/pages/manage/components/DialogWrapper.vue @@ -1652,7 +1652,11 @@ export default { this.onReply() if (this.operateItem.type === 'text') { this.replyActiveUpdate = true - this.msgText = $A.formatMsgBasic(this.operateItem.msg.text) + let {text} = this.operateItem.msg + if (text.indexOf("mention") > -1) { + text = text.replace(/@(.*?)<\/span>/g, '@$3') + } + this.msgText = $A.formatMsgBasic(text) } },