Commit 695c6075 authored by Facius's avatar Facius

fix: 【ID1001489】 【小程序-题库】:当只有一个已绑定或已激活的题库时,题库过期后,左上角选项不对,应显示“请选择题库”

parent 3e990722
...@@ -319,6 +319,14 @@ export default { ...@@ -319,6 +319,14 @@ export default {
this.$u.api this.$u.api
.queryMyQuestionWarehouseDetail(id) .queryMyQuestionWarehouseDetail(id)
.then((res) => { .then((res) => {
if (!res) {
// 题库过期
this.loading = false
this.detail = { questionWarehouse: {} }
this.data = { questionWarehouse: {} }
this.selected = {}
return
}
this.detail = res || { questionWarehouse: {} } this.detail = res || { questionWarehouse: {} }
// this.relationId = res.questionWarehouse.id // this.relationId = res.questionWarehouse.id
if (res.questionWarehouse.id) { if (res.questionWarehouse.id) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment