fix: 修复日期时间数据为空时展示 NaN 的bug

This commit is contained in:
diamont1001
2024-06-27 16:04:17 +08:00
parent 9b1a3623f6
commit 7c58fa7f4e

View File

@@ -255,10 +255,12 @@
<template v-else-if="col.templet === 'date'">
<template v-if="col.prop">
{{
useDateFormat(
scope.row[col.prop],
col.dateFormat ?? "YYYY-MM-DD HH:mm:ss"
).value
scope.row[col.prop]
? useDateFormat(
scope.row[col.prop],
col.dateFormat ?? "YYYY-MM-DD HH:mm:ss"
).value
: ""
}}
</template>
</template>