Merge pull request #9509 from dataease/pr@dev-v2_st

fix(仪表板): 修复仪表板详情报错
This commit is contained in:
dataeaseShu 2024-05-07 15:49:05 +08:00 committed by GitHub
commit 4a361287ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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>