interval修改
This commit is contained in:
parent
c2fa43f720
commit
5f0ed2b450
@ -426,7 +426,7 @@ struct UserInfo {
|
|||||||
that.interval = setInterval(() => {
|
that.interval = setInterval(() => {
|
||||||
if (that.numCount < 3) {
|
if (that.numCount < 3) {
|
||||||
that.numCount++
|
that.numCount++
|
||||||
if(that.list.length){
|
if(that.list.length==0){
|
||||||
that.getExaminationStudentInfoFn()
|
that.getExaminationStudentInfoFn()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -438,7 +438,7 @@ struct UserInfo {
|
|||||||
if(that.list.length == 0){
|
if(that.list.length == 0){
|
||||||
clearInterval(that.interval)
|
clearInterval(that.interval)
|
||||||
that.interval = setInterval(() => {
|
that.interval = setInterval(() => {
|
||||||
if(that.list.length){
|
if(that.list.length==0){
|
||||||
that.getExaminationStudentInfoFn()
|
that.getExaminationStudentInfoFn()
|
||||||
}
|
}
|
||||||
}, 5000)
|
}, 5000)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user