[update] OA单点登录后跳转待办页面
This commit is contained in:
+2
-2
@@ -132,7 +132,7 @@ router.beforeEach(async (to, from, next) => {
|
||||
if (to.path === '/user/login' && to.path !== process.env.VUE_APP_LOGIN_PAGE) {
|
||||
const toPage = process.env.VUE_APP_LOGIN_PAGE.replace('/dashboard/analysis', path.replaceAll('&', '%26'))
|
||||
console.log(toPage)
|
||||
// window.location.replace(toPage)
|
||||
window.location.replace(toPage)
|
||||
return
|
||||
}
|
||||
next()
|
||||
@@ -144,7 +144,7 @@ router.beforeEach(async (to, from, next) => {
|
||||
if (path === '/user/login' && to.path !== process.env.VUE_APP_LOGIN_PAGE) {
|
||||
const toPage = process.env.VUE_APP_LOGIN_PAGE.replace('/dashboard/analysis', to.fullPath.replaceAll('&', '%26'))
|
||||
console.log(toPage)
|
||||
// window.location.replace(toPage)
|
||||
window.location.replace(toPage)
|
||||
return
|
||||
}
|
||||
next({ path: path, query: { redirect: to.fullPath } })
|
||||
|
||||
Reference in New Issue
Block a user