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;
}