fixing redirect landing

This commit is contained in:
Warunee Tamkoo 2025-02-13 15:20:23 +07:00
parent ce70a45182
commit 3db61d70fc
3 changed files with 5 additions and 10 deletions

View file

@ -21,7 +21,7 @@ import { menuList } from "../interface/request/main/main";
// landing page config url
const configParam = {
landingPageUrl: import.meta.env.VITE_URL_SSO,
landingPageUrl: import.meta.env.VITE_URL_LANDING,
};
const $q = useQuasar();
@ -323,14 +323,7 @@ function handleButtonClick() {
}
// landing page redirect
const landingPageUrl = ref<string>(getLandingUrl());
function getLandingUrl() {
if (window.location.hostname === "bma-ehr-admin.frappet.synology.me") {
return `${configParam.landingPageUrl}/e-hr`;
} else {
return configParam.landingPageUrl;
}
}
const landingPageUrl = ref<string>(configParam.landingPageUrl);
/** ฟังก์ชันเรียกข้อมูลผู้ใช่งาน*/
async function fetchKeycloakPosition() {