diff --git a/src/views/MainLayout.vue b/src/views/MainLayout.vue index d01fad814..5d2aca0b3 100644 --- a/src/views/MainLayout.vue +++ b/src/views/MainLayout.vue @@ -84,7 +84,11 @@ const modalLoginLinkage = ref(false); //เข้าสู่ระบ // landing page redirect const landingPageUrl = ref(getLandingUrl()); function getLandingUrl() { - return configParam.landingPageUrl; + if (window.location.hostname === "bma-ehr.frappet.synology.me") { + return `${configParam.landingPageUrl}/e-hr`; + } else { + return configParam.landingPageUrl; + } } async function fetchmsgNoread() {