diff --git a/components/uni-im-msg/types/rich-text.vue b/components/uni-im-msg/types/rich-text.vue index 00a9648f755ba76f2b828e78a083836b2433b944..06b803bf42b1b7b38ea75823b1304707f4509bc0 100644 --- a/components/uni-im-msg/types/rich-text.vue +++ b/components/uni-im-msg/types/rich-text.vue @@ -90,7 +90,7 @@ }, computed: { isSingeImg() { - return this.msg.body.filter(item => item.name != 'img' && item.text).length === 0 + return this.msg.body.filter(item => item.name != 'img' && item.text || item?.attrs?.class === "nickname" ).length === 0 }, imgList() { return this.msg.body.filter(item => item.name == 'img').map(item => item.attrs.src)