From 1df66ea821ec05f6c32f29d9425cdbe563c0d41d Mon Sep 17 00:00:00 2001 From: jl-zhoujl2 Date: Tue, 3 Jan 2023 00:27:11 +0800 Subject: [PATCH] =?UTF-8?q?1.3=20=E7=AC=AC=E5=8D=81=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/ElecEvaluation/Monitor/Home/index.tsx | 4 +++- src/pages/ElecEvaluation/Monitor/OpenToday/index.tsx | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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<{}> = () => {
- +