This commit is contained in:
Warunee Tamkoo 2024-11-18 15:33:46 +07:00
parent ec0dd6c3ad
commit dd7bcb158c

View file

@ -322,7 +322,8 @@ function handleButtonClick() {
}
// landing page redirect
const landingPageUrl = () => {
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.frappet.com") {
@ -330,7 +331,7 @@ const landingPageUrl = () => {
} else {
return `${configParam.landingPageUrl}/landing?mode=dev`;
}
};
}
/**
* งก watch การเปลยนแปลงของค notiTrigger