fixing landing dev only
This commit is contained in:
parent
28ff743911
commit
119bff5ead
1 changed files with 1 additions and 8 deletions
|
|
@ -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`
|
||||
}
|
||||
|
||||
/** ฟังก์ชันเรียกข้อมูลผู้ใช่งาน*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue