fix landingPage

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-02-05 09:55:26 +07:00
parent ad6898effc
commit c33ece8586

View file

@ -84,7 +84,11 @@ const modalLoginLinkage = ref<boolean>(false); //เข้าสู่ระบ
// landing page redirect
const landingPageUrl = ref<string>(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() {