Commit 62298469 authored by Damon's avatar Damon

refactor: 题库授权跳转调整

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