Commit d096d93a authored by Facius's avatar Facius

feat: 授权页面跳转两种情况

parent 4e1de802
...@@ -99,6 +99,26 @@ export default { ...@@ -99,6 +99,26 @@ export default {
}, },
}) })
}, },
// 学生查询题库首页
queryMyQuestionWarehouseDetail() {
this.$u.api
.queryMyQuestionWarehouseDetail(0)
.then((res) => {
if (
res &&
res.questionWarehouse &&
res.questionWarehouse.questionWarehouseId
) {
// 跳转到首页
} else {
// 跳转到选择题库
}
})
.catch((err) => {
// 跳转到选择题库
console.log(err)
})
},
}, },
} }
</script> </script>
......
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