Commit 92ab073e authored by linwenqing's avatar linwenqing

Merge branch 'dev-v1.0.0' of https://git.banshouhui.com/wuzhenzhe/study into dev-v1.0.0

parents 2467e3ad 333cdde1
...@@ -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