fix some other bugs of iam
This commit is contained in:
@@ -117,6 +117,9 @@ router.beforeEach(async (to) => {
|
||||
try {
|
||||
const started = await api.ssoStart();
|
||||
if (started.enabled && started.authorize_url) {
|
||||
if (to.fullPath.startsWith('/') && !to.fullPath.startsWith('//')) {
|
||||
sessionStorage.setItem('gb_iam_return', to.fullPath);
|
||||
}
|
||||
window.location.assign(started.authorize_url);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user