Przeglądaj źródła

填空题修改

dusenyao 11 miesięcy temu
rodzic
commit
65c7e0938c

+ 4 - 1
src/views/exercise_questions/preview/FillPreview.vue

@@ -111,7 +111,10 @@ export default {
       immediate: true,
     },
     isJudgingRightWrong(val) {
-      if (!val) return;
+      if (!val) {
+        this.modelEssay = JSON.parse(JSON.stringify(this.data.model_essay));
+        return;
+      }
       this.answer.answer_list.forEach(({ mark, value }) => {
         this.modelEssay.forEach((item) => {
           item.forEach((li) => {