diff --git a/src/plugins/keycloak.ts b/src/plugins/keycloak.ts index b1ac26ca0..cc18fb645 100644 --- a/src/plugins/keycloak.ts +++ b/src/plugins/keycloak.ts @@ -24,7 +24,7 @@ async function kcLogout() { if (keycloak.authenticated !== undefined) { keycloak.logout(); } - window.location.href = "/login"; + // window.location.href = "/login"; } async function getToken() { diff --git a/src/router/index.ts b/src/router/index.ts index 89c3e3137..95f7a0c0b 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -112,7 +112,7 @@ const router = createRouter({ router.beforeEach((to, from, next) => { if (to.meta.Auth) { if (keycloak.authenticated === undefined) { - kcLogout(); + // kcLogout(); } else { next(); }