fix: "invalid date" error when trying to set a date and none was set before
This commit is contained in:
parent
a23b4a96ee
commit
b144802203
1 changed files with 4 additions and 0 deletions
|
@ -183,6 +183,10 @@ export default {
|
||||||
this.updateData()
|
this.updateData()
|
||||||
},
|
},
|
||||||
get() {
|
get() {
|
||||||
|
if(!this.date) {
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
|
||||||
return format(this.date, 'yyy-LL-dd H:mm')
|
return format(this.date, 'yyy-LL-dd H:mm')
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue