fixing redirect

This commit is contained in:
Warunee Tamkoo 2025-02-13 15:34:46 +07:00
parent 48d7bd016a
commit 33757bc359
3 changed files with 5 additions and 6 deletions

View file

@ -1,2 +1,3 @@
VITE_API_URI_CONFIG=VITE_API_URI_CONFIG VITE_API_URI_CONFIG=VITE_API_URI_CONFIG
VITE_URL_SSO=VITE_URL_SSO VITE_URL_SSO=VITE_URL_SSO
VITE_URL_LANDING=VITE_URL_LANDING

View file

@ -10,6 +10,7 @@ do
sed -i 's|VITE_API_URI_CONFIG|'${VITE_API_URI_CONFIG}'|g' $file sed -i 's|VITE_API_URI_CONFIG|'${VITE_API_URI_CONFIG}'|g' $file
sed -i 's|VITE_URL_SSO|'${VITE_URL_SSO}'|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 done

View file

@ -19,7 +19,7 @@ const $q = useQuasar()
// landing page config url // landing page config url
const configParam = { const configParam = {
landingPageUrl: import.meta.env.VITE_URL_SSO, landingPageUrl: import.meta.env.VITE_URL_LANDING,
} }
const fullName = ref<string>('') // const fullName = ref<string>('') //
@ -141,10 +141,7 @@ function onLoad(index: number, done: Function) {
} }
// landing page redirect // landing page redirect
const landingPageUrl = ref<string>(getLandingUrl()) const landingPageUrl = ref<string>(configParam.landingPageUrl)
function getLandingUrl() {
return configParam.landingPageUrl
}
/** ฟังก์ชันเรียกข้อมูลผู้ใช่งาน*/ /** ฟังก์ชันเรียกข้อมูลผู้ใช่งาน*/
async function fetchKeycloakPosition() { async function fetchKeycloakPosition() {