This commit is contained in:
Warunee Tamkoo 2024-11-18 15:34:38 +07:00
parent 9f89c0fd74
commit 6ad2fe4fb9

View file

@ -142,7 +142,8 @@ function onLoad(index: number, done: Function) {
}
// 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') {