From 49d4e4a0d6db25e22ccf776274fbc6203ac1c5a3 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Mon, 10 Feb 2025 11:34:58 +0700 Subject: [PATCH] updated --- src/views/home.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/home.vue b/src/views/home.vue index c9f6b6b..d681c99 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -164,10 +164,13 @@ onMounted(async () => { deleteCookie("BMAHRISCKI_KEYCLOAK_IDENTITY"); deleteCookie("BMAHRISUSER_KEYCLOAK_IDENTITY"); + const uid = await getCookie("uid"); + console.log("uid===>", uid); + await axios .post( `${config.API.sso}/kcauth`, - {}, + { uid: uid }, { headers: { "Content-Type": "application/json", @@ -196,7 +199,7 @@ onMounted(async () => { if (location.hostname == "hrms.chin.in.th") { router.push("/sso"); } else { - window.location.href = `${config.API.URL_SSO}`; + // window.location.href = `${config.API.URL_SSO}`; } });