|
@@ -82,6 +82,8 @@ router.beforeEach(async (to, from, next) => {
|
|
|
let ssoServer = 'http://sso.sagacloud.cn'
|
|
|
let redirectUrl = window.location.protocol + '//' + window.location.host + '/strategy'
|
|
|
window.location.href = `${ssoServer}/login?redirectUrl=${redirectUrl}`
|
|
|
+ let lastRoute = { path: to.path, params: to.params, query: to.query }
|
|
|
+ sessionStorage.setItem('lastRoute',JSON.stringify(lastRoute))
|
|
|
}
|
|
|
})
|
|
|
|