diff --git a/src/components/UserSelect/index.vue b/src/components/UserSelect/index.vue index 5563342..477eb46 100644 --- a/src/components/UserSelect/index.vue +++ b/src/components/UserSelect/index.vue @@ -153,14 +153,8 @@ const queryParams = ref({ }); const confirm = () => { - if (prop.multiple) { - emit('update:modelValue', selectUserList.value); - emit('confirmCallBack', selectUserList.value); - } else { - const data = selectUserList.value.length > 0 ? selectUserList.value[0] : undefined; - emit('update:modelValue', data); - emit('confirmCallBack', data); - } + emit('update:modelValue', selectUserList.value); + emit('confirmCallBack', selectUserList.value); userDialog.closeDialog(); };