Browse Source

try fix answer wrong index question

Michael Wang 6 years ago
parent
commit
587a1d0f5e

+ 1 - 1
src/features/OnlineExam/Examing/BooleanQuestionView.vue

@@ -62,7 +62,7 @@ export default {
     async answerQuestion(studentAnswer) {
       if (studentAnswer !== this.examQuestion.studentAnswer) {
         this.updateExamQuestion({
-          order: this.$route.params.order,
+          order: this.examQuestion.order,
           studentAnswer
         });
       }

+ 1 - 1
src/features/OnlineExam/Examing/MultipleQuestionView.vue

@@ -95,7 +95,7 @@ export default {
       }
       if (realAnswer !== this.examQuestion.studentAnswer) {
         this.updateExamQuestion({
-          order: this.$route.params.order,
+          order: this.examQuestion.order,
           studentAnswer: realAnswer
         });
       }

+ 1 - 1
src/features/OnlineExam/Examing/SingleQuestionView.vue

@@ -68,7 +68,7 @@ export default {
     async answerQuestion(studentAnswer) {
       if (studentAnswer !== this.examQuestion.studentAnswer) {
         this.updateExamQuestion({
-          order: this.$route.params.order,
+          order: this.examQuestion.order,
           studentAnswer
         });
       }

+ 1 - 1
src/features/OnlineExam/Examing/TextQuestionView.vue

@@ -47,7 +47,7 @@ export default {
       }
       if (realAnswer !== this.examQuestion.studentAnswer) {
         this.updateExamQuestion({
-          order: this.$route.params.order,
+          order: this.examQuestion.order,
           studentAnswer: realAnswer
         });
       }