diff --git a/src/components/ma-form/formItem/form-user-select.vue b/src/components/ma-form/formItem/form-user-select.vue index d114ed1b..234c19e4 100644 --- a/src/components/ma-form/formItem/form-user-select.vue +++ b/src/components/ma-form/formItem/form-user-select.vue @@ -42,6 +42,9 @@ const value = ref(get(formModel.value, index)) watch( () => get(formModel.value, index), vl => value.value = vl ) watch( () => value.value, v => { + if(props.component.multiple === false && v.length === 1) { + v = v.shift(); + } set(formModel.value, index, v) index.indexOf('.') > -1 && delete formModel.value[index] } )