fixing redirect
This commit is contained in:
parent
99095e293b
commit
b60ca9df9b
3 changed files with 4 additions and 9 deletions
|
|
@ -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<string>(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<string>(configParam.landingPageUrl);
|
||||
|
||||
function onViewDetailNoti(url: string) {
|
||||
window.open(url, "_blank");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue