[update] OA单点登录后跳转待办页面

This commit is contained in:
lideqin
2024-02-27 18:16:46 +08:00
parent 41e0fac134
commit 3b39894001
+2 -2
View File
@@ -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 } })