fix landingPage

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-02-05 09:59:55 +07:00
parent 92b449ca8d
commit ce70a45182

View file

@ -325,7 +325,11 @@ function handleButtonClick() {
// landing page redirect
const landingPageUrl = ref<string>(getLandingUrl());
function getLandingUrl() {
return configParam.landingPageUrl;
if (window.location.hostname === "bma-ehr-admin.frappet.synology.me") {
return `${configParam.landingPageUrl}/e-hr`;
} else {
return configParam.landingPageUrl;
}
}
/** ฟังก์ชันเรียกข้อมูลผู้ใช่งาน*/