refactor: set default img

This commit is contained in:
Thanaphon Frappet 2024-12-25 14:44:21 +07:00
parent b9a98fb1d8
commit f394b09dd3

View file

@ -381,13 +381,19 @@ function isInstallmentPaySuccess(installmentNo: number) {
> >
<AvatarGroup <AvatarGroup
:data=" :data="
responsiblePersonList[pageState.currentStep].map((v) => ({ responsiblePersonList[pageState.currentStep].map((v) => {
return {
name: name:
$i18n.locale === 'eng' $i18n.locale === 'eng'
? `${v.firstNameEN} ${v.lastNameEN}` ? `${v.firstNameEN} ${v.lastNameEN}`
: `${v.firstName} ${v.lastName}`, : `${v.firstName} ${v.lastName}`,
imgUrl: `${baseUrl}/user/${v.id}/profile-image/${v.selectedImage}`, imgUrl: !v.selectedImage
})) ? v.gender === 'male'
? `/no-img-man.png`
: `/no-img-female.png`
: `${baseUrl}/user/${v.id}/profile-image/${v.selectedImage}`,
};
})
" "
/> />
</template> </template>