From 7531b86b0f5e08f2ea4e566df803035d0dea6b89 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 5 Feb 2025 09:57:17 +0700 Subject: [PATCH] fix landingPage --- src/views/MainLayout.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/MainLayout.vue b/src/views/MainLayout.vue index 8462eab..f6feb70 100644 --- a/src/views/MainLayout.vue +++ b/src/views/MainLayout.vue @@ -236,7 +236,11 @@ function onInfo() { // landing page redirect const landingPageUrl = ref(getLandingUrl()); function getLandingUrl() { - return configParam.landingPageUrl; + if (window.location.hostname === "bma-ehr-user.frappet.synology.me") { + return `${configParam.landingPageUrl}/e-hr`; + } else { + return configParam.landingPageUrl; + } } function onViewDetailNoti(url: string) {