refactor(ui): apply +543 year formatting to columns

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2026-03-25 16:55:15 +07:00
parent 30b63f1b52
commit 5830d24118
8 changed files with 8 additions and 8 deletions

View file

@ -112,7 +112,7 @@ const columns = ref<QTableProps["columns"]>([
headerStyle: "font-size: 14px",
style: "font-size: 14px",
format(val, row) {
return `${row.year + 543}`;
return `${row.year ? row.year + 543 : "-"}`;
},
sort: (a: number, b: number) => b - a,
},