fix landingpage

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-02-05 10:01:17 +07:00
parent 3cb02c2896
commit f8304cb80b

View file

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