Browse Source

更新未读数标识

imndx 2 years ago
parent
commit
e1613b550d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pages/conversationList/ConversationItemView.vue

+ 1 - 1
pages/conversationList/ConversationItemView.vue

@@ -4,7 +4,7 @@
             <view class="header">
                 <img class="avatar" draggable="false" :src="conversationInfo.conversation._target.portrait" alt=""
                      @error="imgUrlAlt"/>
-                <em v-if="unread > 0" class="badge" v-bind:class="{silent:conversationInfo.isSilent}">{{ unread }}</em>
+                <em v-if="unread > 0" class="badge" v-bind:class="{silent:conversationInfo.isSilent}">{{ unread > 99 ? '99' : unread }}</em>
             </view>
             <view class="content-container">
                 <view class="title-time-container">