소스 검색

input 失去焦点,是由key变化引起的

Michael Wang 5 년 전
부모
커밋
4473ba90bb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/features/OnlineExam/Examing/FillBlankQuestionView.vue

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

@@ -9,7 +9,7 @@
     </div>
     <div
       v-for="(option, index) in studentAnswer.split('##')"
-      :key="examQuestion.id + index"
+      :key="examQuestion.questionId + index"
       class="option"
     >
       <span class="question-options">{{ index + 1 }}. </span>