Skip to content

Commit 0f80623

Browse files
committed
fix: 默认值导致变化无法检测问题
1 parent fb9534e commit 0f80623

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/EleForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ export default {
581581
if (this.computedFormDesc[field].displayFormatter) {
582582
defaultValue = this.desc.displayFormatter(defaultValue, this.formData)
583583
}
584-
setDeepVal(this.formData, field, defaultValue)
584+
this.setValue(field, defaultValue)
585585
}
586586
587587
const fullPath = field.split('.').join('.chidlren.')

0 commit comments

Comments
 (0)