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) - }, + } }