fixing landing dev only

This commit is contained in:
Warunee Tamkoo 2025-01-11 11:28:21 +07:00
parent 28ff743911
commit 119bff5ead

View file

@ -143,14 +143,7 @@ function onLoad(index: number, done: Function) {
// landing page redirect
const landingPageUrl = ref<string>(getLandingUrl())
function getLandingUrl() {
console.log('hostname===>', window.location.hostname)
if (window.location.hostname === 'bmasso.bma.go.th') {
return `${configParam.landingPageUrl}/landing?mode=dev`
} else if (window.location.hostname === 'bma-ehr-checkin.frappet.com') {
return `${configParam.landingPageUrl}/landing?mode=prod`
} else {
return `${configParam.landingPageUrl}/landing?mode=dev`
}
return `${configParam.landingPageUrl}/landing`
}
/** ฟังก์ชันเรียกข้อมูลผู้ใช่งาน*/