From ca8a205f98f3e24dff551c7d31e72a18f6e71991 Mon Sep 17 00:00:00 2001 From: oat_dev Date: Thu, 13 Jun 2024 15:11:27 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20=E0=B8=8B=E0=B9=88=E0=B8=AD=E0=B8=99?= =?UTF-8?q?=E0=B8=84=E0=B8=B3=E0=B8=AB=E0=B8=99=E0=B9=89=E0=B8=B2=E0=B8=8A?= =?UTF-8?q?=E0=B8=B7=E0=B9=88=E0=B8=AD=20=E0=B8=96=E0=B9=89=E0=B8=B2?= =?UTF-8?q?=E0=B9=80=E0=B8=9B=E0=B9=87=E0=B8=99null?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../05_placement/components/AppointEmployee/Detail.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/05_placement/components/AppointEmployee/Detail.vue b/src/modules/05_placement/components/AppointEmployee/Detail.vue index d46e389a6..3055582a9 100644 --- a/src/modules/05_placement/components/AppointEmployee/Detail.vue +++ b/src/modules/05_placement/components/AppointEmployee/Detail.vue @@ -72,9 +72,9 @@ const fecthappointmentByid = async () => { const data = res.data.result; appointment.value = data; profileId.value = data.profileId; - title.value.fullname = `${data.prefix}${data.firstName ?? "-"} ${ - data.lastName ?? "-" - }`; + title.value.fullname = `${data.prefix === null ? "" : data.prefix}${ + data.firstName ?? "-" + } ${data.lastName ?? "-"}`; title.value.organizationPositionOld = data.organizationPositionOld ?? "-"; title.value.positionLevelOld = data.positionLevelOld ?? "-"; title.value.positionTypeOld = data.positionTypeOld ?? "-";