From 6ad2fe4fb9c0654d3da413b031dfcd0f229eddd4 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Mon, 18 Nov 2024 15:34:38 +0700 Subject: [PATCH] fixing --- src/views/MainView.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/MainView.vue b/src/views/MainView.vue index 63e69de..a5a6468 100644 --- a/src/views/MainView.vue +++ b/src/views/MainView.vue @@ -142,7 +142,8 @@ function onLoad(index: number, done: Function) { } // 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') {