fix: ซ่อนคำหน้าชื่อ ถ้าเป็นnull
This commit is contained in:
parent
877809c2b4
commit
5d8ea1ce7d
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
}`;
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue