From 51448af9f5be60a5b8c84c5f2a3b8c5640f1e404 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Thu, 8 Aug 2024 10:08:55 +0700 Subject: [PATCH] test close redirect --- src/plugins/keycloak.ts | 2 +- src/router/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); }