check host for sso page
This commit is contained in:
parent
484b0ac8f0
commit
34355b097d
1 changed files with 5 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue