mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-15 14:24:39 +00:00
Fixed: Empty Value Update
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -59,6 +59,8 @@ export default {
|
||||
},
|
||||
on: {
|
||||
fileChange: ([value], updateForm) => {
|
||||
console.log('fileChange', value)
|
||||
console.log('updateForm', updateForm)
|
||||
this.logo_file = value
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user