diff --git a/src/pages/ElecEvaluation/Monitor/Home/index.tsx b/src/pages/ElecEvaluation/Monitor/Home/index.tsx index 69ee5f5..b8f9b3f 100644 --- a/src/pages/ElecEvaluation/Monitor/Home/index.tsx +++ b/src/pages/ElecEvaluation/Monitor/Home/index.tsx @@ -1388,7 +1388,9 @@ const MonitorHome: React.FC<{}> = () => { const getMonitorList = () => { getMonitorListAPI({ pageNo: 1, pageSize: 3 }).then(res => { if (res?.code == 200) { - setMonitorList(res?.data.records); + if (res?.data?.records?.length > 0) { + setMonitorList(res?.data.records); + } } }) } diff --git a/src/pages/ElecEvaluation/Monitor/OpenToday/index.tsx b/src/pages/ElecEvaluation/Monitor/OpenToday/index.tsx index 3d67160..114fe4c 100644 --- a/src/pages/ElecEvaluation/Monitor/OpenToday/index.tsx +++ b/src/pages/ElecEvaluation/Monitor/OpenToday/index.tsx @@ -235,7 +235,7 @@ const OpenToday: React.FC<{}> = () => {