From d29c202815c3c01878540f8e4756f1cd00fd02b0 Mon Sep 17 00:00:00 2001 From: DCloud_JSON Date: Tue, 23 Apr 2024 13:22:56 +0800 Subject: [PATCH] Update rich-text.vue --- components/uni-im-msg/types/rich-text.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/uni-im-msg/types/rich-text.vue b/components/uni-im-msg/types/rich-text.vue index 00a9648..06b803b 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) -- GitLab