refactor: set default img
This commit is contained in:
parent
b9a98fb1d8
commit
f394b09dd3
1 changed files with 13 additions and 7 deletions
|
|
@ -381,13 +381,19 @@ function isInstallmentPaySuccess(installmentNo: number) {
|
|||
>
|
||||
<AvatarGroup
|
||||
:data="
|
||||
responsiblePersonList[pageState.currentStep].map((v) => ({
|
||||
name:
|
||||
$i18n.locale === 'eng'
|
||||
? `${v.firstNameEN} ${v.lastNameEN}`
|
||||
: `${v.firstName} ${v.lastName}`,
|
||||
imgUrl: `${baseUrl}/user/${v.id}/profile-image/${v.selectedImage}`,
|
||||
}))
|
||||
responsiblePersonList[pageState.currentStep].map((v) => {
|
||||
return {
|
||||
name:
|
||||
$i18n.locale === 'eng'
|
||||
? `${v.firstNameEN} ${v.lastNameEN}`
|
||||
: `${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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue