Fixed: Empty Value Update

This commit is contained in:
zhaojisen
2025-03-03 11:18:46 +08:00
committed by ZhaoJiSen
parent 880c44fdaa
commit 156715ede5
2 changed files with 3 additions and 0 deletions

View File

@@ -168,6 +168,7 @@ export default {
* @param {All} options.value 表单数据
*/
updateValue({ id, value }) {
if (!value) return
this.value = { ...this.value, [id]: value }
this.$nextTick(() => {
this.$refs.elForm.validateField(id)

View File

@@ -59,6 +59,8 @@ export default {
},
on: {
fileChange: ([value], updateForm) => {
console.log('fileChange', value)
console.log('updateForm', updateForm)
this.logo_file = value
}
}