feat : 测试sso单点登录之后的重定向路径4
This commit is contained in:
@@ -15,7 +15,14 @@ const init = () => {
|
||||
})
|
||||
if (authStore.casToken(tokenValue)) {
|
||||
loading.close()
|
||||
router.push('/')
|
||||
const toView = sessionStorage.getItem('toView')
|
||||
console.log(toView, 'toView');
|
||||
if (toView) {
|
||||
let parse = JSON.parse(toView);
|
||||
window.location.href = window.location.origin + parse.path + parse.query
|
||||
} else {
|
||||
router.push('/')
|
||||
}
|
||||
}
|
||||
}
|
||||
init()
|
||||
|
||||
Reference in New Issue
Block a user