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) => {
name: return {
$i18n.locale === 'eng' name:
? `${v.firstNameEN} ${v.lastNameEN}` $i18n.locale === 'eng'
: `${v.firstName} ${v.lastName}`, ? `${v.firstNameEN} ${v.lastNameEN}`
imgUrl: `${baseUrl}/user/${v.id}/profile-image/${v.selectedImage}`, : `${v.firstName} ${v.lastName}`,
})) imgUrl: !v.selectedImage
? v.gender === 'male'
? `/no-img-man.png`
: `/no-img-female.png`
: `${baseUrl}/user/${v.id}/profile-image/${v.selectedImage}`,
};
})
" "
/> />
</template> </template>