From 6097346330b7754698bed4c51e8524a45f2ae192 Mon Sep 17 00:00:00 2001 From: lvyuankang <1344032923@qq.com> Date: Fri, 6 Sep 2024 15:42:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E6=97=B6=E5=99=A8=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/pages/UserInfo.ets | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/entry/src/main/ets/pages/UserInfo.ets b/entry/src/main/ets/pages/UserInfo.ets index cf64e09f..aa48a565 100644 --- a/entry/src/main/ets/pages/UserInfo.ets +++ b/entry/src/main/ets/pages/UserInfo.ets @@ -426,7 +426,9 @@ struct UserInfo { that.interval = setInterval(() => { if (that.numCount < 3) { that.numCount++ - that.getExaminationStudentInfoFn() + if(that.list.length){ + that.getExaminationStudentInfoFn() + } } }, 5000) }else{ @@ -436,7 +438,9 @@ struct UserInfo { if(that.list.length == 0){ clearInterval(that.interval) that.interval = setInterval(() => { + if(that.list.length){ that.getExaminationStudentInfoFn() + } }, 5000) }else{ that.getExaminationStudentInfoFn()