refactor: handle img employee
This commit is contained in:
parent
79240f53b0
commit
79ec995547
6 changed files with 14 additions and 13 deletions
|
|
@ -288,8 +288,8 @@ defineEmits<{
|
|||
: `${props.row.firstName} ${props.row.lastName} `.trim(),
|
||||
img:
|
||||
`${baseUrl}/employee/${props.row.id}/image/${props.row.selectedImage}` ||
|
||||
'/images/employee-avatar.png',
|
||||
fallbackImg: '/images/employee-avatar.png',
|
||||
`/images/employee-avatar-${props.row.gender}.png`,
|
||||
fallbackImg: `/images/employee-avatar-${props.row.gender}.png`,
|
||||
male: props.row.gender === 'male',
|
||||
female: props.row.gender === 'female',
|
||||
detail: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue