zhangjie 3 hónapja
szülő
commit
d98a712a81
1 módosított fájl, 2 hozzáadás és 13 törlés
  1. 2 13
      src/features/mark/scoring/MarkBoardTrack.vue

+ 2 - 13
src/features/mark/scoring/MarkBoardTrack.vue

@@ -107,7 +107,7 @@
             <div
               :class="['question-score', { 'is-problem': question.problem }]"
             >
-              <span v-if="question.problem"> 问题卷 </span>
+              <span v-if="question.problem" key="problem"> 问题卷 </span>
               <span
                 v-else
                 :key="markStore.currentTask?.markResult?.scoreList[index] || 0"
@@ -163,7 +163,7 @@
       </qm-button>
 
       <qm-button
-        v-if="markStore.currentQuestion.problem"
+        v-if="markStore.currentQuestion?.problem"
         class="board-clear"
         @click="cancelProblem"
       >
@@ -368,17 +368,6 @@ function cancelProblem() {
   markStore.currentQuestion.problem = false;
   markStore.currentQuestion.problemType = "";
   markStore.currentQuestion.problemRemark = "";
-
-  console.log("cancelProblem currentQuestion:", markStore.currentQuestion);
-
-  // const markResult = markStore.currentTask.markResult;
-  // markResult.questionList.forEach((item) => {
-  //   if (item.questionId === markStore.currentQuestion.questionId) {
-  //     item.problem = false;
-  //     item.problemType = "";
-  //     item.problemRemark = "";
-  //   }
-  // });
 }
 
 let keyPressTimestamp = 0;