แก้คำนำหน้าชื่อเป็น null
This commit is contained in:
parent
7fa1129457
commit
371fc43282
2 changed files with 4 additions and 4 deletions
|
|
@ -443,9 +443,9 @@ onMounted(async () => {
|
|||
</div>
|
||||
<div class="q-py-xs">
|
||||
{{
|
||||
`${informaData.rank ? informaData.rank : informaData.prefix} ${
|
||||
informaData.firstName
|
||||
} ${informaData.lastName}`
|
||||
`${
|
||||
informaData.rank ? informaData.rank : informaData.prefix ?? ""
|
||||
} ${informaData.firstName} ${informaData.lastName}`
|
||||
}}
|
||||
</div>
|
||||
<div class="q-py-xs">
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ 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 ?? ""}${row.firstName} ${row.lastName}`;
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue