From 65bca180531a7cec852f1d6a84da3e629baac858 Mon Sep 17 00:00:00 2001 From: mzc5649 <13027087095@163.com> Date: Fri, 23 Apr 2021 14:32:51 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90add=E3=80=91=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=AD=A3=E7=A1=AE=E7=9A=84moment=E7=9A=84tojson=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/components/jero/JDate.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jero-web/src/components/jero/JDate.vue b/jero-web/src/components/jero/JDate.vue index f6ada9ee..5d218949 100644 --- a/jero-web/src/components/jero/JDate.vue +++ b/jero-web/src/components/jero/JDate.vue @@ -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{