From b9cf252e368b21e20f04b0ff0b6bfd96fa65c895 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Mon, 18 Nov 2024 15:31:46 +0700 Subject: [PATCH] fixing landing page --- 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 13b24ac..1cd9061 100644 --- a/src/views/MainLayout.vue +++ b/src/views/MainLayout.vue @@ -234,7 +234,8 @@ function onInfo() { } // 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") { @@ -242,7 +243,7 @@ const landingPageUrl = () => { } else { return `${configParam.landingPageUrl}/landing?mode=dev`; } -}; +}