解决百度统计无数据时程序异常问题

This commit is contained in:
宇阳
2024-12-29 00:25:14 +08:00
parent 41e61bcdae
commit 63fc7f746a
3 changed files with 6 additions and 6 deletions

View File

@@ -70,7 +70,7 @@ export default () => {
}
});
setStats({ pv, ip, bounce: bounce / count, avgTime: formatTime(avgTime / count) })
setStats({ pv, ip, bounce: (bounce / count) || 0, avgTime: formatTime(avgTime / count) || "00:00:00" })
};
useEffect(() => {