fix(图表): 修复表格动态字段为空导致图表渲染错误

This commit is contained in:
wisonic-s
2025-05-30 11:41:29 +08:00
committed by GitHub
parent 207e56d50b
commit 3a34c81046

View File

@@ -802,6 +802,9 @@ export function mappingColor(value, defaultColor, field, type, filedValueMap?, r
}
} else {
// time
if (!tv || !value) {
break
}
const fc = field.conditions[i]
tv = new Date(tv.replace(/-/g, '/') + ' GMT+8').getTime()
const v = new Date(value.replace(/-/g, '/') + ' GMT+8').getTime()