20240205
luoJunYong.123 3 years ago
parent 5a76db9ce2
commit e911ed922a
  1. 38
      src/components/case/index.vue

@ -210,25 +210,25 @@ 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.$message({ // this.$message({
showClose: true, // showClose: true,
message: '考核已结束', // message: '',
type: 'success' // type: 'success'
}); // });
}else { // }else {
} // }
}) // })
}, 4000) // }, 4000)
}else { }else {
this.intervalJudge = setInterval(() => { this.intervalJudge = setInterval(() => {
const data = { const data = {

Loading…
Cancel
Save