Skip to content

Commit

Permalink
fix: 解决vif导致重复请求问题
Browse files Browse the repository at this point in the history
  • Loading branch information
dream2023 committed Feb 15, 2020
1 parent fcca303 commit d748e74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/EleForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ export default {
const newKey = `${field}._oldValue.type-${type}`
setDeepVal(this.formDesc, oldKey, formData[field])
const newVal = getDeepVal(formItem, newKey, null)
this.setValue(field, newVal)
setDeepVal(this.formData, field, newVal)
}
} else {
type = this.getComponentName(formItem.type)
Expand All @@ -564,7 +564,7 @@ export default {
// 如果隐藏, 则删除值
if (!vif) {
this.setValue(field, null)
setDeepVal(this.formData, field, null)
}
// 3.触发 disabled 禁用 / 启用
Expand Down

0 comments on commit d748e74

Please sign in to comment.