fixing landing dev only

This commit is contained in:
Warunee Tamkoo 2025-01-11 11:27:28 +07:00
parent 0e20cf8415
commit c69b1fcfe7

View file

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