refactor: 优化OIDC登陆之后跳转
This commit is contained in:
parent
8bb7873fc1
commit
46905850f8
|
@ -1 +1 @@
|
||||||
Subproject commit 6edae7aeeb9d5ade65d64a115d00af96e4dc56d6
|
Subproject commit 5c3d89b449159ebad7f2c9ad36285d75f98b12c6
|
|
@ -74,11 +74,11 @@ export default {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// OIDC redirect 之后不跳转
|
// OIDC redirect 之后不跳转
|
||||||
if (window.location.href.endsWith('/#/') || window.location.href.endsWith('/#')) {
|
if (window.location.href.endsWith('#/refresh')) {
|
||||||
window.location.replace("/#/setting/personsetting");
|
window.location.replace("/#/setting/personsetting");
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
}, 500);
|
}, 200);
|
||||||
}
|
}
|
||||||
window.addEventListener("beforeunload", () => {
|
window.addEventListener("beforeunload", () => {
|
||||||
localStorage.setItem("store", JSON.stringify(this.$store.state));
|
localStorage.setItem("store", JSON.stringify(this.$store.state));
|
||||||
|
|
Loading…
Reference in New Issue