Browse Source
fix: fieldMappingTime data error when clear inputvalue (#4906)
pull/4916/head
huangxiaomin
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
5 additions and
0 deletions
-
packages/@core/ui-kit/form-ui/src/components/form-actions.vue
|
|
|
@ -91,6 +91,11 @@ function handleRangeTimeValue(values: Record<string, any>) { |
|
|
|
|
|
|
|
fieldMappingTime.forEach( |
|
|
|
([field, [startTimeKey, endTimeKey], format = 'YYYY-MM-DD']) => { |
|
|
|
if (startTimeKey && endTimeKey && values[field] === null) { |
|
|
|
delete values[startTimeKey]; |
|
|
|
delete values[endTimeKey]; |
|
|
|
} |
|
|
|
|
|
|
|
if (!values[field]) { |
|
|
|
delete values[field]; |
|
|
|
return; |
|
|
|
|