用户登录系统 统计分析 bug修改

This commit is contained in:
wyw 2026-05-28 11:02:07 +08:00
parent cf8591fc51
commit d8fe6fcc48

View File

@ -152,9 +152,13 @@ class BI005LoginRecord extends React.Component {
}
}
if (this.state.totalActiveUsers == 0) {
this.state.totalActiveUsers = ret.Data.reverse().find(
(item) => item.type === 0
).COUNT;
// this.state.totalActiveUsers = ret.Data.reverse().find((item) => item.type === 0 ).COUNT;
var ActiveUsers = ret.Data.reverse().find((item) => item.type === 0)
if (ActiveUsers != null && ActiveUsers.length > 0) {
this.state.totalActiveUsers = ActiveUsers.length
} else {
this.state.totalActiveUsers = 0;
}
}
this.state.dates.push(moment().format("MM/DD"));
this.state.loginNums.push(todayCount);