From 02d4e45c8b2e1a11ef529578b558c9f6e2ee979f Mon Sep 17 00:00:00 2001 From: linxi Date: Fri, 11 Jul 2025 16:37:50 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A4016=20=E3=80=90=E5=95=86=E5=9F=8E?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E3=80=91=E7=94=A8=E6=88=B7=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=98=B5=E7=A7=B0=EF=BC=8C=E8=AF=84=E8=AE=BA=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=92=8C=E4=BA=92=E5=8A=A8=E6=B6=88=E6=81=AF=E5=A4=84?= =?UTF-8?q?@XXX=EF=BC=88=E7=94=A8=E6=88=B7=E6=98=B5=E7=A7=B0=EF=BC=89?= =?UTF-8?q?=EF=BC=8C=E6=9C=AA=E5=90=8C=E6=AD=A5=E5=8F=98=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pagesInn/inn/innInfoDetail.vue | 6 +++--- pkg_common/views/message.vue | 9 ++++++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/pagesInn/inn/innInfoDetail.vue b/pagesInn/inn/innInfoDetail.vue index d204d44..099a0e9 100644 --- a/pagesInn/inn/innInfoDetail.vue +++ b/pagesInn/inn/innInfoDetail.vue @@ -142,7 +142,7 @@ - {{ _comment.reply.split(' ')[0] }} + {{ "@" +_comment.at.atNickName }} {{ ' ' + _comment.reply.split(' ')[1] }} @@ -241,8 +241,8 @@ export default { return } // 若删除@用户名,将@用户名整个删除 - const usernameLength = `@${this.currentComment.userNickName}`.length - if(!e.includes(`@${this.currentComment.userNickName}`) && this.currentComment.userNickName) { + const usernameLength = `@${this.currentComment.userNickName} `.length + if(!e.includes(`@${this.currentComment.userNickName} `) && this.currentComment.userNickName) { this.currentComment = {} this.reply = e.slice(usernameLength - 1); // 去除@用户名 } diff --git a/pkg_common/views/message.vue b/pkg_common/views/message.vue index 1618c7f..4e0d710 100644 --- a/pkg_common/views/message.vue +++ b/pkg_common/views/message.vue @@ -29,10 +29,13 @@ + + {{ comment.parentReply }} - {{ comment.reply }} + {{ "@" +comment.senderUserNickname }} + {{ ' ' + comment.reply.split(' ')[1] }}