@@ -97,8 +97,9 @@ export default {
let data = {
...this.question,
quesParam: { matchingMode: this.matchingMode },
+ subQuestions: [],
};
-
+ if (!this.$refs.MatchQuestion) return;
data.subQuestions = this.$refs.MatchQuestion.map((compInst) =>
compInst.getData()
);
@@ -79,7 +79,8 @@ export default {
return true;
},
getData() {
- let data = { ...this.question };
+ let data = { ...this.question, subQuestions: [] };
+ if (!this.$refs.QuestionEditDetail) return;
data.subQuestions = this.$refs.QuestionEditDetail.map((compInst) =>