fix(仪表板): 修复仪表板详情报错

This commit is contained in:
dataeaseShu 2024-05-07 15:48:12 +08:00
parent 0f63c8bcac
commit eee11b465b
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ const timestampFormatDate = value => {
if (!value) {
return '-'
}
return new Date(value)['format']()
return new Date(value).toLocaleString()
}
const valueText = (field, val, options) => {
for (let index = 0; index < options.length; index++) {

View File

@ -27,7 +27,7 @@ const timestampFormatDate = value => {
if (!value) {
return '-'
}
return new Date(value)['format']()
return new Date(value).toLocaleString()
}
</script>