|
|
|
@ -210,21 +210,21 @@ export default { |
|
|
|
|
}, 10000) |
|
|
|
|
}else { |
|
|
|
|
if(process.env.NODE_ENV === "development") { |
|
|
|
|
this.intervalJudge = setInterval(() => { |
|
|
|
|
const data = { |
|
|
|
|
id: parseInt(sessionStorage.getItem('assessmentId')), |
|
|
|
|
token: parseInt(sessionStorage.getItem('token')) |
|
|
|
|
} |
|
|
|
|
checkTest(data).then(data => { |
|
|
|
|
const { data: { data: { status } } } = data |
|
|
|
|
if(status !== 1) { |
|
|
|
|
this.popContainer = true |
|
|
|
|
clearInterval(this.intervalJudge) |
|
|
|
|
this.sureSubmit(false) |
|
|
|
|
}else { |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, 4000) |
|
|
|
|
// this.intervalJudge = setInterval(() => { |
|
|
|
|
// const data = { |
|
|
|
|
// id: parseInt(sessionStorage.getItem('assessmentId')), |
|
|
|
|
// token: parseInt(sessionStorage.getItem('token')) |
|
|
|
|
// } |
|
|
|
|
// checkTest(data).then(data => { |
|
|
|
|
// const { data: { data: { status } } } = data |
|
|
|
|
// if(status !== 1) { |
|
|
|
|
// this.popContainer = true |
|
|
|
|
// clearInterval(this.intervalJudge) |
|
|
|
|
// this.sureSubmit(false) |
|
|
|
|
// }else { |
|
|
|
|
// } |
|
|
|
|
// }) |
|
|
|
|
// }, 4000) |
|
|
|
|
}else { |
|
|
|
|
this.intervalJudge = setInterval(() => { |
|
|
|
|
const data = { |
|
|
|
|