fixing landing dev only

This commit is contained in:
Warunee Tamkoo 2025-01-11 11:24:07 +07:00
parent de5c82b7ef
commit f7c398d555

View file

@ -84,13 +84,7 @@ const modalLoginLinkage = ref<boolean>(false); //เข้าสู่ระบ
// 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.frappet.com") {
return `${configParam.landingPageUrl}/landing?mode=prod`;
} else {
return `${configParam.landingPageUrl}/landing?mode=dev`;
}
return `${configParam.landingPageUrl}/landing`;
}
async function fetchmsgNoread() {