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

+ 4 - 4
src/web/staticres/js/login.js

@@ -420,10 +420,10 @@ function checkCounts() {
                     url: '/jymessageCenter/lastNewMessage?t=' + Date.now(),
                     success: function (r) {
                         var num = r.count
-                        var isMsg = window.localStorage.getItem('noMesg')
-                        if (num !== Number(isMsg)) {
+                        // var isMsg = window.localStorage.getItem('noMesg')
+                        // if (num !== Number(isMsg)) {
                             var datas = r.data
-                            if (!$.isEmptyObject(datas)) {
+                            if (num && !$.isEmptyObject(datas)) {
                                 var notify = new Notification(datas.title,{
                                     icon: '../images/t3_new.jpg',
                                     body: datas.content
@@ -435,7 +435,7 @@ function checkCounts() {
                                 }
                             }
                             localStorage.setItem('noMesg', num)
-                        }
+                        // }
                     },
                     error: function () {
                         clearInterval(msgTimer)