Commit 628bed24 authored by Facius's avatar Facius

fix: 【ID1001306】 【小程序-首页-每日一练弹窗】:选择了已选择的题库后,回到首页后会弹出免费答题体验1次弹窗。

parent 0323b236
...@@ -252,7 +252,6 @@ export default { ...@@ -252,7 +252,6 @@ export default {
let res = await this.$u.api.getQuestionWarehouse(this.category.id, param) let res = await this.$u.api.getQuestionWarehouse(this.category.id, param)
if (res && res.length > 0) { if (res && res.length > 0) {
let data = res[0] let data = res[0]
this.setPageInfo(data)
// 学员增加自己的题库 // 学员增加自己的题库
let result = await this.$u.api let result = await this.$u.api
.addQuestionWarehouse({ .addQuestionWarehouse({
...@@ -263,6 +262,7 @@ export default { ...@@ -263,6 +262,7 @@ export default {
}) })
if (result) { if (result) {
this.setPageInfo(data)
// 成功 // 成功
this.$refs.uToast.show({ this.$refs.uToast.show({
title: '添加题库成功', title: '添加题库成功',
...@@ -280,10 +280,12 @@ export default { ...@@ -280,10 +280,12 @@ export default {
} }
} else { } else {
this.$refs.uToast.show({ this.$refs.uToast.show({
title: '所选科目没有对应的题库', title: '该类型和区域没有的题库',
type: 'warning', type: 'warning',
duration: 1500, duration: 1500,
callback: () => {}, callback: () => {
this.showPop = false
},
}) })
} }
}, },
......
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