From f1967f6541e2dcb7f45b32406ba2bab842ffcbfb Mon Sep 17 00:00:00 2001
From: xsx <825657193@qq.com>
Date: Thu, 10 Jul 2025 01:34:58 +0800
Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
im-uniapp/components/chat-item/chat-item.vue | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/im-uniapp/components/chat-item/chat-item.vue b/im-uniapp/components/chat-item/chat-item.vue
index f8002ce..b2c019d 100644
--- a/im-uniapp/components/chat-item/chat-item.vue
+++ b/im-uniapp/components/chat-item/chat-item.vue
@@ -15,7 +15,8 @@
{{ atText }}
{{ chat.sendNickName + ': ' }}
- {{chat.lastContent}}
+
@@ -77,7 +78,12 @@ export default {
return "[@全体成员]"
}
return "";
- }
+ },
+ isTextMessage() {
+ let idx = this.chat.messages.length - 1;
+ let messageType = this.chat.messages[idx].type;
+ return messageType == this.$enums.MESSAGE_TYPE.TEXT;
+ },
}
}
@@ -171,7 +177,7 @@ export default {
overflow: hidden;
text-overflow: ellipsis;
}
-
+
.icon {
font-size: $im-font-size;
}