Fix:4016 【商城小程序】用户修改昵称,评论列表和互动消息处@XXX(用户昵称),未同步变动
This commit is contained in:
@@ -142,7 +142,7 @@
|
||||
</view>
|
||||
<view class="user-name v12-ml-3">
|
||||
<view class="v12-font-28 v12-dark-text">
|
||||
<text class="v12-dark1-text">{{ _comment.reply.split(' ')[0] }}</text>
|
||||
<text class="v12-dark1-text">{{ "@" +_comment.at.atNickName }}</text>
|
||||
{{ ' ' + _comment.reply.split(' ')[1] }}
|
||||
</view>
|
||||
</view>
|
||||
@@ -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); // 去除@用户名
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user