Commit 62298469 authored by Damon's avatar Damon

refactor: 题库授权跳转调整

parent d096d93a
......@@ -76,6 +76,10 @@ export default {
this.$u.vuex('userInfo', userInfo)
if (this.returnUrl) {
if (this.returnUrl === 'pages/learn/selectedList') {
this.queryMyQuestionWarehouseDetail()
return
}
this.$u.route({
url: this.returnUrl,
type: 'redirectTo',
......@@ -110,8 +114,16 @@ export default {
res.questionWarehouse.questionWarehouseId
) {
// 跳转到首页
this.$u.route({
url: '/pages/index/index',
type: 'tab',
})
} else {
// 跳转到选择题库
this.$u.route({
url: this.returnUrl,
type: 'redirectTo',
})
}
})
.catch((err) => {
......
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