refactor: OIDC登录时记录登录地址到浏览器本地存储

This commit is contained in:
CaptainB 2023-04-24 18:52:21 +08:00
parent 0592ded8c9
commit df832e71cf
1 changed files with 4 additions and 4 deletions

View File

@ -198,6 +198,10 @@ export default {
setLanguage(lang);
this.rules = this.getDefaultRules();
}
let url = localStorage.getItem('oidcLoginUrl');
if (url) {
window.location.href = url;
}
});
},
@ -209,10 +213,6 @@ export default {
this.form.authenticate = authenticate;
}
}
let url = localStorage.getItem('oidcLoginUrl');
if (url) {
window.location.href = url;
}
},
destroyed() {