caso especial listo

This commit is contained in:
2021-06-09 13:44:18 -05:00
parent ac109a961a
commit 304490c015
27 changed files with 173 additions and 162 deletions
+8 -2
View File
@@ -201,8 +201,14 @@ export default {
return style
},
fecha(date) {
const fecha = moment(date.substr(0, 10))
return `${fecha.date()}/${fecha.month() + 1}/${fecha.year()}`
if (date) {
const fecha = moment(date)
return `${fecha.date()}/${
fecha.month() < 9 ? '0' + (fecha.month() + 1) : fecha.month() + 1
}/${fecha.year()}`
}
return ''
},
onPageChange(page) {
this.page = page