diff --git a/src/views/home.vue b/src/views/home.vue index 0f4392a..45f22e4 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -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();