update robust

This commit is contained in:
thinkgem
2025-10-13 15:28:15 +08:00
parent 976b7a4e83
commit b062493503

View File

@@ -15,7 +15,8 @@
location.reload(true);
});
}
try{$('#onlineCount').html(Number(data || 0))}catch(e){}
let num = Number(data || 0);
try{$('#onlineCount').html(num !== num ? 0 : num)}catch(e){}
}
$.ajax({
url: ctx+'/sys/online/count?__notUpdateSession=true&__t=' + new Date().getTime(),