【add】添加正确的moment的tojson格式
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user