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