fix landingPage

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-02-05 09:57:17 +07:00
parent 760a45cfb1
commit 7531b86b0f

View file

@ -236,8 +236,12 @@ function onInfo() {
// landing page redirect // landing page redirect
const landingPageUrl = ref<string>(getLandingUrl()); const landingPageUrl = ref<string>(getLandingUrl());
function getLandingUrl() { function getLandingUrl() {
if (window.location.hostname === "bma-ehr-user.frappet.synology.me") {
return `${configParam.landingPageUrl}/e-hr`;
} else {
return configParam.landingPageUrl; return configParam.landingPageUrl;
} }
}
function onViewDetailNoti(url: string) { function onViewDetailNoti(url: string) {
window.open(url, "_blank"); window.open(url, "_blank");