From d8fe6fcc480bc1b9a4b9321ccdc0735617681af2 Mon Sep 17 00:00:00 2001 From: wyw <571921741@qq.com> Date: Thu, 28 May 2026 11:02:07 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=99=BB=E5=BD=95=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=20=E7=BB=9F=E8=AE=A1=E5=88=86=E6=9E=90=20bug=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CustomPages/BI/BI005LoginRecord.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/CustomPages/BI/BI005LoginRecord.js b/src/components/CustomPages/BI/BI005LoginRecord.js index c2a4ed3..8417483 100644 --- a/src/components/CustomPages/BI/BI005LoginRecord.js +++ b/src/components/CustomPages/BI/BI005LoginRecord.js @@ -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);