提交 228edf51 authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 96e1edc4
......@@ -85,7 +85,9 @@ export default {
immediate: true,
handler(data) {
this.detail = data.paper
this.questions = data.paper ? this.genQuestions(data.paper.examination) : []
if (!this.questions.length) {
this.questions = data.paper ? this.genQuestions(data.paper.examination) : []
}
}
}
},
......
......@@ -60,7 +60,9 @@ export default {
chapter: {
immediate: true,
handler(data) {
this.questions = data.homework ? this.genQuenstions(data.homework.questions) : []
if (!this.questions.length) {
this.questions = data.homework ? this.genQuenstions(data.homework.questions) : []
}
}
}
},
......
......@@ -116,7 +116,9 @@ export default {
chapter: {
immediate: true,
handler(data) {
this.questions = data.homework ? this.genQuenstions(data.homework.questions) : []
if (!this.questions.length) {
this.questions = data.homework ? this.genQuenstions(data.homework.questions) : []
}
}
}
},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论