1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-10 20:39:48 +08:00

fix #421 Display field type date in table (#422)

This commit is contained in:
Leonel Matos 2020-03-27 17:39:15 -04:00 committed by GitHub
parent a1b3b25c2b
commit 24a2a09762
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -183,7 +183,7 @@ export default {
}
// generate range value
if (this.metadata.isRange) {
if (this.metadata.isRange && !this.metadata.inTable) {
let valueTo = this.metadata.valueTo
if (typeof valueTo === 'number') {
valueTo = new Date(valueTo).toUTCString()