change landing reirect

This commit is contained in:
Warunee Tamkoo 2025-02-13 15:09:55 +07:00
parent bb83d7ca67
commit d552da65a3
3 changed files with 4 additions and 9 deletions

View file

@ -24,7 +24,7 @@ import LoginLinkage from "@/components/LoginLinkage.vue";
// landing page config url
const configParam = {
landingPageUrl: import.meta.env.VITE_URL_SSO,
landingPageUrl: import.meta.env.VITE_URL_LANDING,
};
const { setVerticalScrollPosition } = scroll;
const store = useDataStore();
@ -82,14 +82,7 @@ const options = ref<optionType[]>([
const modalLoginLinkage = ref<boolean>(false); // Linkage Center
// landing page redirect
const landingPageUrl = ref<string>(getLandingUrl());
function getLandingUrl() {
if (window.location.hostname === "bma-ehr.frappet.synology.me") {
return `${configParam.landingPageUrl}/e-hr`;
} else {
return configParam.landingPageUrl;
}
}
const landingPageUrl = ref<string>(configParam.landingPageUrl);
async function fetchmsgNoread() {
await http