浏览代码

知识点作答提交答案无数据清空

liurongli 1 月之前
父节点
当前提交
e8663e45ad
共有 1 个文件被更改,包括 4 次插入 和 0 次删除
  1. 4 0
      src/views/targetImprove/practice/practiceAnswer.vue

+ 4 - 0
src/views/targetImprove/practice/practiceAnswer.vue

@@ -252,6 +252,10 @@ export default {
               this.exerciseId = this.waitList?.[0]?.exerciseId || "";
               this.knowledgeName = this.waitList?.[0]?.knowledgeName || "";
               this.GetStudentTargeExerciseQuestion();
+            }else{
+              this.exerciseId = "";
+              this.knowledgeName = "";
+              this.questionList = [];
             }
           }
         });