fix: ซ่อนคำหน้าชื่อ ถ้าเป็นnull

This commit is contained in:
oat_dev 2024-06-13 11:09:56 +07:00
parent 877809c2b4
commit 5d8ea1ce7d

View file

@ -71,7 +71,9 @@ const columns = ref<QTableProps["columns"]>([
headerStyle: "font-size: 14px",
style: "font-size: 14px",
format(val, row) {
return `${row.prefix}${row.firstName} ${row.lastName}`;
return `${row.prefix === null ? "" : row.prefix}${row.firstName} ${
row.lastName
}`;
},
},
{