diff --git a/src/views/MainLayout.vue b/src/views/MainLayout.vue index 810c86f0..1c4c9e41 100644 --- a/src/views/MainLayout.vue +++ b/src/views/MainLayout.vue @@ -322,7 +322,8 @@ function handleButtonClick() { } // 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") { @@ -330,7 +331,7 @@ const landingPageUrl = () => { } else { return `${configParam.landingPageUrl}/landing?mode=dev`; } -}; +} /** * ฟังก์ชัน watch การเปลี่ยนแปลงของค่า notiTrigger