From 3a627db704ad7bfeca2c229c7dfec8784203730b Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 15 Oct 2025 17:14:14 +0700 Subject: [PATCH] fix:display prefix --- src/modules/10_registry/01_Information/04_Family.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/10_registry/01_Information/04_Family.vue b/src/modules/10_registry/01_Information/04_Family.vue index 97bf98e..516f3c6 100644 --- a/src/modules/10_registry/01_Information/04_Family.vue +++ b/src/modules/10_registry/01_Information/04_Family.vue @@ -183,7 +183,7 @@ async function getData(type: string) { checkFatherData.value = data ? true : false; fatherData.isLive = data.fatherLive; fatherData.citizenId = data.fatherCitizenId; - fatherData.prefix = data.fatherPrefix; + fatherData.prefix = data.fatherPrefix ? data.fatherPrefix : ""; fatherData.firstName = data.fatherFirstName; fatherData.lastName = data.fatherLastName; fatherData.job = data.fatherCareer; @@ -192,7 +192,7 @@ async function getData(type: string) { checkMotherData.value = data ? true : false; motherData.isLive = data.motherLive; motherData.citizenId = data.motherCitizenId; - motherData.prefix = data.motherPrefix; + motherData.prefix = data.motherPrefix ? data.motherPrefix : ""; motherData.firstName = data.motherFirstName; motherData.lastName = data.motherLastName; motherData.job = data.motherCareer; @@ -201,7 +201,7 @@ async function getData(type: string) { checkCoupleData.value = data ? true : false; coupleData.isLive = data.coupleLive; coupleData.citizenId = data.coupleCitizenId; - coupleData.prefix = data.couplePrefix; + coupleData.prefix = data.couplePrefix ? data.couplePrefix : ""; coupleData.firstName = data.coupleFirstName; coupleData.lastName = data.coupleLastName; coupleData.job = data.coupleCareer;