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()