Browse Source

feat:消息总数

wangxiaogang 3 năm trước cách đây
mục cha
commit
dabbde6a0e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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()