From e911ed922ae936031bc48356d2bf15d09e5fcc81 Mon Sep 17 00:00:00 2001 From: "luoJunYong.123" Date: Wed, 8 Dec 2021 16:34:12 +0800 Subject: [PATCH] update2 --- src/components/case/index.vue | 38 +++++++++++++++++------------------ 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/components/case/index.vue b/src/components/case/index.vue index 7469343..322c205 100644 --- a/src/components/case/index.vue +++ b/src/components/case/index.vue @@ -210,25 +210,25 @@ 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.$message({ - showClose: true, - message: '考核已结束', - type: 'success' - }); - }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.$message({ + // showClose: true, + // message: '考核已结束', + // type: 'success' + // }); + // }else { + // } + // }) + // }, 4000) }else { this.intervalJudge = setInterval(() => { const data = {