mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-19 00:07:47 +00:00
perf: updateValue
This commit is contained in:
@@ -168,11 +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)
|
||||
})
|
||||
},
|
||||
/**
|
||||
* @return {object} key is item's id, value is item's value
|
||||
|
||||
Reference in New Issue
Block a user