|
@@ -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,
|