check host for sso page

This commit is contained in:
Warunee Tamkoo 2025-02-07 12:27:20 +07:00
parent 484b0ac8f0
commit 34355b097d

View file

@ -193,7 +193,11 @@ onMounted(async () => {
}
})
.catch((err: any) => {
window.location.href = `${config.API.URL_SSO}`;
if (location.hostname == "hrms.chin.in.th") {
router.push("/sso");
} else {
window.location.href = `${config.API.URL_SSO}`;
}
});
getName();