fixing redirect landing
This commit is contained in:
parent
ce70a45182
commit
3db61d70fc
3 changed files with 5 additions and 10 deletions
|
|
@ -2,3 +2,4 @@ VITE_API_URI_CONFIG=VITE_API_URI_CONFIG
|
|||
VITE_API_REPORT_URL=VITE_API_REPORT_URL
|
||||
VITE_MANUAL_URL=VITE_MANUAL_URL
|
||||
VITE_URL_SSO=VITE_URL_SSO
|
||||
VITE_URL_LANDING=VITE_URL_LANDING
|
||||
|
|
@ -12,6 +12,7 @@ do
|
|||
sed -i 's|VITE_API_REPORT_URL|'${VITE_API_REPORT_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
|
||||
|
||||
done
|
||||
|
||||
|
|
|
|||
|
|
@ -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