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