瀏覽代碼

修改问题

dusenyao 11 月之前
父節點
當前提交
11e23aa37f
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/views/home/recovery/ExerciseAnswerUserList.vue

+ 3 - 3
src/views/home/recovery/ExerciseAnswerUserList.vue

@@ -184,12 +184,14 @@ export default {
   },
   watch: {
     curAnswerRecordId: {
-      handler() {
+      handler(val) {
+        if (!val) return;
         this.getQuestionInfo_AnswerRecord();
       },
     },
   },
   created() {
+    this.init();
     GetExerciseQuestionAnswerUserList({
       share_record_id: this.share_record_id,
       question_id: this.question_id,
@@ -201,7 +203,6 @@ export default {
         this.selectUser(userList[0].user_id, userList[0].answer_record_id);
       }
     });
-    this.init();
   },
   methods: {
     init() {
@@ -219,7 +220,6 @@ export default {
     },
     // 得到答题记录题目信息
     getQuestionInfo_AnswerRecord() {
-      if (this.questionList.length === 0) return;
       GetQuestionInfo_AnswerRecord({
         answer_record_id: this.curAnswerRecordId,
         question_id: this.question_id,