Merge pull request #3220 from jumpserver/pr@dev@perf_attr_change_value

perf: 修改 change value
This commit is contained in:
老广
2023-06-15 14:42:36 +08:00
committed by GitHub

View File

@@ -54,9 +54,9 @@ export default {
this.$emit('input', value) this.$emit('input', value)
}, },
setTypeAndValue() { setTypeAndValue() {
this.loading = false this.loading = true
this.type = this.getType() this.type = this.getType()
this.$log.debug('ValueField: Type: ', this.type, 'Value: ', this.value) this.$log.debug('ValueField: Type: ', this.type, 'Value: ', this.value, 'attr: ', this.attr)
if (['select', 'array'].includes(this.type) && typeof this.value === 'string') { if (['select', 'array'].includes(this.type) && typeof this.value === 'string') {
const value = this.value ? this.value.split(',') : [] const value = this.value ? this.value.split(',') : []
this.handleInput(value) this.handleInput(value)