refactor: 优化OIDC登陆之后跳转

This commit is contained in:
Captain.B 2021-10-09 17:10:38 +08:00 committed by 刘瑞斌
parent 8bb7873fc1
commit 46905850f8
2 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit 6edae7aeeb9d5ade65d64a115d00af96e4dc56d6 Subproject commit 5c3d89b449159ebad7f2c9ad36285d75f98b12c6

View File

@ -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));