Skip to content

Commit

Permalink
Revert "add:单选情况下返回ID 而不是数组"
Browse files Browse the repository at this point in the history
  • Loading branch information
tiancheng-66 authored Feb 28, 2024
1 parent 2cfc6ed commit e116fa0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/components/ma-form/formItem/form-user-select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ 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]
} )
Expand Down

0 comments on commit e116fa0

Please sign in to comment.