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

bug fixes

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