From 835d2c3527eb96abbb1ff905cc1817d55dfee76e Mon Sep 17 00:00:00 2001 From: zhangsir Date: Thu, 9 May 2024 16:19:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=80=83=E8=AF=95=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E6=96=B9=E5=BC=8F=E6=94=B9=E4=B8=BA=E6=9C=89=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E5=80=BC=E5=8F=AF=E5=86=8D=E6=AC=A1=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E7=82=B9=E5=87=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Course/exam.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/Course/exam.vue b/src/components/Course/exam.vue index d4b4d7b7..f5a98de8 100644 --- a/src/components/Course/exam.vue +++ b/src/components/Course/exam.vue @@ -72,7 +72,7 @@
上一题 - 提 交 + 提 交 下一题
@@ -156,6 +156,7 @@ export default { }, data() { return { + thisTrue: true, viewTest:[], imageBaseUrl:process.env.VUE_APP_FILE_BASE_URL, correctJudgment:correctJudgment, @@ -538,8 +539,9 @@ export default { var dateDiff = now.getTime() - this.startTime.getTime();//时间差的毫秒数 var minutes=Math.floor(dateDiff/(1000))//计算相差秒数,分钟记录的太大,经常为0 postData.testDuration=minutes; - + this.thisTrue = false apiStudy.saveExam(postData).then(res=>{ + this.thisTrue = true if(res.status == 200) { this.records.push(res.result); this.content.status=9;//表已学习完,判断上级的章是否已完成 @@ -599,9 +601,9 @@ export default { }, }, - created() { - this.debouncedPresent = this.debounce(this.present, 500); - }, + // created() { + // this.debouncedPresent = this.debounce(this.present, 500); + // }, }