fixing landing dev only
This commit is contained in:
parent
90095f2c70
commit
0217ee122d
1 changed files with 1 additions and 7 deletions
|
|
@ -236,13 +236,7 @@ function onInfo() {
|
||||||
// landing page redirect
|
// landing page redirect
|
||||||
const landingPageUrl = ref<string>(getLandingUrl());
|
const landingPageUrl = ref<string>(getLandingUrl());
|
||||||
function getLandingUrl() {
|
function getLandingUrl() {
|
||||||
if (window.location.hostname === "bmasso.bma.go.th") {
|
return `${configParam.landingPageUrl}/landing`;
|
||||||
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`;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue