【add】添加正确的moment的tojson格式

This commit is contained in:
mzc5649
2021-04-23 14:32:51 +08:00
parent 8a81e182d2
commit 65bca18053
+2
View File
@@ -106,6 +106,8 @@
},
watch: {
value (val) {
let fm = this.dateFormat
moment.prototype.toJSON = function(){return moment(this).format(fm)}
if(!val){
this.momVal = null
}else{