From 9970bbbc7a61675084114549df91c804706dfb16 Mon Sep 17 00:00:00 2001 From: zhangsir Date: Sun, 28 Apr 2024 10:21:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/study/exam.vue | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pages/study/exam.vue b/pages/study/exam.vue index ccc0eaa..d1bc2af 100644 --- a/pages/study/exam.vue +++ b/pages/study/exam.vue @@ -92,6 +92,8 @@ if(this.examId){ this.loadExamInfo(); } + this.debouncedPresent = this.debounce(this.present, 500); + this.confirmStop = this.debounce(this.submitTest,500) }, methods: { changeTimer(){ @@ -396,11 +398,7 @@ } - }, - created() { - this.debouncedPresent = this.debounce(this.present, 500); - this.confirmStop = this.debounce(this.submitTest,500) - }, + } }