1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

fix: wrong field type detection

This commit is contained in:
2020-12-09 18:22:46 +01:00
parent 15b08d7ea8
commit 5cfdc9b92d
4 changed files with 12 additions and 10 deletions

View File

@ -157,6 +157,8 @@ export default {
typeFormat (val, type, precision) {
if (!val) return val;
type = type.toUpperCase();
if (DATE.includes(type))
return moment(val).isValid() ? moment(val).format('YYYY-MM-DD') : val;