From a50eb5b830a4ff7215a87d101fa51d0ca56a6b0f Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Mon, 18 Nov 2024 15:29:29 +0700 Subject: [PATCH] fixing --- src/views/MainLayout.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/MainLayout.vue b/src/views/MainLayout.vue index 5665fc30f..39b96f1de 100644 --- a/src/views/MainLayout.vue +++ b/src/views/MainLayout.vue @@ -81,7 +81,8 @@ const options = ref([ const modalLoginLinkage = ref(false); //เข้าสู่ระบบ Linkage Center // landing page redirect -const landingPageUrl = () => { +const landingPageUrl = ref(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