This commit is contained in:
Warunee Tamkoo 2024-11-18 15:29:29 +07:00
parent a55820297a
commit a50eb5b830

View file

@ -81,7 +81,8 @@ const options = ref<optionType[]>([
const modalLoginLinkage = ref<boolean>(false); // Linkage Center
// 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") {
@ -89,7 +90,7 @@ const landingPageUrl = () => {
} else {
return `${configParam.landingPageUrl}/landing?mode=dev`;
}
};
}
async function fetchmsgNoread() {
await http