소스 검색

feat:消息总数

wangxiaogang 3 년 전
부모
커밋
dabbde6a0e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/web/staticres/js/message.js

+ 1 - 1
src/web/staticres/js/message.js

@@ -91,7 +91,7 @@ function Message() {
                         success: function (s) {
                             if (r.data.count + s.count > 0) {
                                 $('#tips').show()
-                                $('#tips').html(r.data.count > 99 ? '99+' : r.data.count)
+                                $('#tips').html(r.data.count + s.count > 99 ? '99+' : r.data.count + s.count)
                                 $('#noNum').html(r.data.count + s.count)
                             } else {
                                 $('#tips').hide()