diff --git a/apps/web-antd/src/views/im/home/pages/conversation/components/conversation/conversation-item.vue b/apps/web-antd/src/views/im/home/pages/conversation/components/conversation/conversation-item.vue
index 938146e67..6911ba1c4 100644
--- a/apps/web-antd/src/views/im/home/pages/conversation/components/conversation/conversation-item.vue
+++ b/apps/web-antd/src/views/im/home/pages/conversation/components/conversation/conversation-item.vue
@@ -116,6 +116,15 @@ const atText = computed(() => {
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) {
@@ -204,7 +213,7 @@ function handleContextMenu(e: MouseEvent) {
@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) {
@@ -204,7 +213,7 @@ function handleContextMenu(e: MouseEvent) {
@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) {
@@ -204,7 +213,7 @@ function handleContextMenu(e: MouseEvent) {
@click="handleClick"
@contextmenu.prevent="handleContextMenu"
>
-
+
{{ conversation.unreadCount > 99 ? '99+' : conversation.unreadCount }}
-
+
{{ atText }}
+
+
+ {{ mutedUnreadText }}
+