Commit d096d93a authored by Facius's avatar Facius

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

parent 4e1de802
......@@ -74,7 +74,7 @@ export default {
this.$u.vuex('vuex_token', res.token)
this.$u.vuex('openId', res.openId)
this.$u.vuex('userInfo', userInfo)
if (this.returnUrl) {
this.$u.route({
url: this.returnUrl,
......@@ -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>
......
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