Explorar o código

未填写答案显示原题

dusenyao hai 11 meses
pai
achega
c5ca1dcce5
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      src/views/home/recovery/ExerciseAnswerUserList.vue

+ 10 - 0
src/views/home/recovery/ExerciseAnswerUserList.vue

@@ -253,6 +253,16 @@ export default {
           this.$nextTick().then(() => {
           this.$nextTick().then(() => {
             this.$refs.exercise?.[0].showAnswer(true, true, content.length > 0 ? JSON.parse(content) : null, true);
             this.$refs.exercise?.[0].showAnswer(true, true, content.length > 0 ? JSON.parse(content) : null, true);
           });
           });
+        } else {
+          this.$refs.exercise?.[0].showAnswer(
+            false,
+            false,
+            {
+              answer: '',
+              answer_list: [],
+            },
+            true,
+          );
         }
         }
       });
       });
     },
     },