fixing landing page

This commit is contained in:
Warunee Tamkoo 2024-11-18 15:31:46 +07:00
parent bd033e6131
commit b9cf252e36

View file

@ -234,7 +234,8 @@ function onInfo() {
}
// 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") {
@ -242,7 +243,7 @@ const landingPageUrl = () => {
} else {
return `${configParam.landingPageUrl}/landing?mode=dev`;
}
};
}
</script>
<!-- โครงเว -->