fixing redirect landing
This commit is contained in:
parent
ce70a45182
commit
3db61d70fc
3 changed files with 5 additions and 10 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue