解决定时轮询当为空时,不变更消息提示数字

Signed-off-by: ZhangKeqi <2329453+SevenLonelyDay@user.noreply.gitee.com>
This commit is contained in:
ZhangKeqi 2023-02-08 07:41:10 +00:00 committed by Gitee
parent 2b38dbf933
commit 8b730cbc85
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -220,7 +220,7 @@
url: "/home/index/index", url: "/home/index/index",
type:'post', type:'post',
success:function(e){ success:function(e){
if(e.code==0 && e.data!=''){ if(e.code==0 && e.data!==''){
if(e.data.msg_num>0){ if(e.data.msg_num>0){
$('#msgNum').show().find('span').html(e.data.msg_num); $('#msgNum').show().find('span').html(e.data.msg_num);
} }