diff --git a/components/form/DateTime.vue b/components/form/DateTime.vue index 6caa190..f0658fa 100644 --- a/components/form/DateTime.vue +++ b/components/form/DateTime.vue @@ -50,9 +50,11 @@ return props.modelValue }, set(val) { - if (props.formProps.format === 'yyyy-mm-dd hh:mm') { - val = val.substring(0, 16) + ':00' + console.log(11111111, props.formProps.format == 'yyyy-MM-dd HH:mm', val) + if (props.formProps.format == 'yyyy-MM-dd HH:mm') { + val = val.substring(0, 16) } + console.log(val) emits('update:modelValue', val) } })