diff --git a/src/modules/05_leave/components/formDetail/01_SickForm.vue b/src/modules/05_leave/components/formDetail/01_SickForm.vue index cf8a51a..1c9d53d 100644 --- a/src/modules/05_leave/components/formDetail/01_SickForm.vue +++ b/src/modules/05_leave/components/formDetail/01_SickForm.vue @@ -50,9 +50,11 @@ const props = defineProps({
- ลาครั้งสุดท้ายในประเภทนั้น ๆ เมื่อวันที่ + ลาครั้งสุดท้ายเมื่อวันที่ +
+
+ {{ props.data.leaveLastStart ?? "-" }}
-
{{ props.data.leaveLastStart }}
หมายเลขที่ติดต่อขณะลา
diff --git a/src/views/MainLayout.vue b/src/views/MainLayout.vue index 393bda7..6d0da85 100644 --- a/src/views/MainLayout.vue +++ b/src/views/MainLayout.vue @@ -234,7 +234,8 @@ function onInfo() { } // landing page redirect -const landingPageUrl = () => { +const landingPageUrl = ref(getLandingUrl()); +function getLandingUrl() { if (window.location.hostname === "bmasso.bma.go.th") { return `${configParam.landingPageUrl}/landing?mode=dev`; } else if (window.location.hostname === "bma-ehr.frappet.com") { @@ -242,7 +243,7 @@ const landingPageUrl = () => { } else { return `${configParam.landingPageUrl}/landing?mode=dev`; } -}; +}