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}`; } });