diff --git a/src/views/im/home/pages/conversation/components/conversation/ConversationItem.vue b/src/views/im/home/pages/conversation/components/conversation/ConversationItem.vue index a31f632d5..6543fe509 100644 --- a/src/views/im/home/pages/conversation/components/conversation/ConversationItem.vue +++ b/src/views/im/home/pages/conversation/components/conversation/ConversationItem.vue @@ -6,7 +6,7 @@ @click="handleClick" @contextmenu.prevent="handleContextMenu" > - +
{{ conversation.unreadCount > 99 ? '99+' : conversation.unreadCount }} - + {{ atText }} + + + {{ mutedUnreadText }} + { return '' }) +/** 免打扰会话未读条数文案 */ +const mutedUnreadText = computed(() => { + if (!props.conversation.silent || props.conversation.unreadCount <= 0) { + return '' + } + const count = props.conversation.unreadCount > 99 ? '99+' : props.conversation.unreadCount + return `[${count}条]` +}) + /** 群聊未处理加群申请红字前缀;store 已经按「我管理的群」过滤过,count > 0 即可显示 */ const requestText = computed(() => { if (!isGroup.value) {