mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-25 14:25:23 +00:00
Merge pull request #3220 from jumpserver/pr@dev@perf_attr_change_value
perf: 修改 change value
This commit is contained in:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user