avatar ทดลองงาน

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-09-07 11:54:09 +07:00
parent 1f8f704533
commit 8a3efbf45c

View file

@ -227,6 +227,7 @@ const getTable = async () => {
fullName: data.fullName + " " + data.idCard,
name: data.fullName,
profilePhoto: data.profilePhoto ?? "",
avatar: data.avatar ?? "",
organizationName:
data.organizationName +
" " +
@ -616,15 +617,11 @@ const paginationLabel = (start: number, end: number, total: number) => {
<q-item v-ripple>
<q-item-section avatar>
<img
v-if="props.row.profilePhoto == ''"
v-if="props.row.avatar == ''"
src="@/assets/avatar_user.jpg"
class="col-4 img-info"
/>
<img
v-else
:src="props.row.profilePhoto"
class="col-4 img-info"
/>
<img v-else :src="props.row.avatar" class="col-4 img-info" />
</q-item-section>
<q-item-section>