This commit is contained in:
Warunee Tamkoo 2025-02-10 11:34:58 +07:00
parent 3c62f748b6
commit 49d4e4a0d6

View file

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