diff --git a/.env.production b/.env.production index e85ca8e..34cdec1 100644 --- a/.env.production +++ b/.env.production @@ -2,4 +2,5 @@ VITE_API_URI_CONFIG=VITE_API_URI_CONFIG VITE_API_PUBLISH_URL=VITE_API_PUBLISH_URL VITE_MANUAL_URL=VITE_MANUAL_URL VITE_URL_SSO=VITE_URL_SSO +VITE_URL_LANDING=VITE_URL_LANDING VITE_API_REPORT_URL=VITE_API_REPORT_URL \ No newline at end of file diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index ae50dc4..e41d13f 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -12,6 +12,7 @@ do sed -i 's|VITE_API_PUBLISH_URL|'${VITE_API_PUBLISH_URL}'|g' $file sed -i 's|VITE_MANUAL_URL|'${VITE_MANUAL_URL}'|g' $file sed -i 's|VITE_URL_SSO|'${VITE_URL_SSO}'|g' $file + sed -i 's|VITE_URL_LANDING|'${VITE_URL_LANDING}'|g' $file sed -i 's|VITE_API_REPORT_URL|'${VITE_API_REPORT_URL}'|g' $file diff --git a/src/views/MainLayout.vue b/src/views/MainLayout.vue index f6feb70..0c0b6c4 100644 --- a/src/views/MainLayout.vue +++ b/src/views/MainLayout.vue @@ -13,7 +13,7 @@ import { useDataStore } from "@/stores/data"; // landing page config url const configParam = { - landingPageUrl: import.meta.env.VITE_URL_SSO, + landingPageUrl: import.meta.env.VITE_URL_LANDING, }; const route = useRoute(); @@ -234,14 +234,7 @@ function onInfo() { } // landing page redirect -const landingPageUrl = ref(getLandingUrl()); -function getLandingUrl() { - if (window.location.hostname === "bma-ehr-user.frappet.synology.me") { - return `${configParam.landingPageUrl}/e-hr`; - } else { - return configParam.landingPageUrl; - } -} +const landingPageUrl = ref(configParam.landingPageUrl); function onViewDetailNoti(url: string) { window.open(url, "_blank");