fixing landing dev only

This commit is contained in:
Warunee Tamkoo 2025-01-11 11:25:08 +07:00
parent 90095f2c70
commit 0217ee122d

View file

@ -236,13 +236,7 @@ function onInfo() {
// 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-user.frappet.com") {
return `${configParam.landingPageUrl}/landing?mode=prod`;
} else {
return `${configParam.landingPageUrl}/landing?mode=dev`;
}
return `${configParam.landingPageUrl}/landing`;
}
</script>