Эх сурвалжийг харах

保证进入试题的类型是正确的

Michael Wang 6 жил өмнө
parent
commit
90bca6e344

+ 5 - 5
src/features/OnlineExam/Examing/QuestionView.vue

@@ -17,19 +17,19 @@
 
       <div v-show="question && examQuestion && examQuestion.getQuestionContent" class="question-view" :key="examQuestion.order">
         <div style="margin-bottom: -45px;">{{examQuestion.groupOrder}}、</div>
-        <template v-if="question && question.questionType === 'SINGLE_CHOICE'">
+        <template v-if="question && examQuestion.questionType === 'SINGLE_CHOICE'">
           <single-question-view :question="question" :examQuestion="examQuestion" :key="examQuestion.order" />
         </template>
-        <template v-if="question && question.questionType === 'MULTIPLE_CHOICE'">
+        <template v-if="question && examQuestion.questionType === 'MULTIPLE_CHOICE'">
           <multiple-question-view :question="question" :examQuestion="examQuestion" :key="examQuestion.order" />
         </template>
-        <template v-if="question && question.questionType === 'TRUE_OR_FALSE'">
+        <template v-if="question && examQuestion.questionType === 'TRUE_OR_FALSE'">
           <boolean-question-view :question="question" :examQuestion="examQuestion" :key="examQuestion.order" />
         </template>
-        <template v-if="question && question.questionType === 'FILL_UP'">
+        <template v-if="question && examQuestion.questionType === 'FILL_UP'">
           <fill-blank-question-view :question="question" :examQuestion="examQuestion" :key="examQuestion.order" />
         </template>
-        <template v-if="question && question.questionType === 'ESSAY'">
+        <template v-if="question && examQuestion.questionType === 'ESSAY'">
           <text-question-view :question="question" :examQuestion="examQuestion" :key="examQuestion.order" />
         </template>
       </div>