【add】添加正确的moment的tojson格式
This commit is contained in:
@@ -106,6 +106,8 @@
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
value (val) {
|
value (val) {
|
||||||
|
let fm = this.dateFormat
|
||||||
|
moment.prototype.toJSON = function(){return moment(this).format(fm)}
|
||||||
if(!val){
|
if(!val){
|
||||||
this.momVal = null
|
this.momVal = null
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
Reference in New Issue
Block a user