Skip to content

Commit

Permalink
Merge pull request #117 from tiancheng-66/revert-116-main
Browse files Browse the repository at this point in the history
Revert "add:单选情况下返回ID 而不是数组"
  • Loading branch information
zds-s authored Feb 28, 2024
2 parents 2cfc6ed + e116fa0 commit e7cf375
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 e7cf375

Please sign in to comment.