From 6070390a8b8153bb75e5337abc7c51a3525c004a Mon Sep 17 00:00:00 2001 From: LiuHao Date: Sat, 27 Jan 2024 18:00:55 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E7=BB=84=E4=BB=B6=20=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/UserSelect/index.vue | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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(); };