From 4c607f69156c4f4d48b8f4dd7ddebbffc15f2825 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Fri, 29 Aug 2025 11:38:14 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=20=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=E7=94=A8=E6=88=B7=E9=80=89=E6=8B=A9=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=20=E6=95=B0=E6=8D=AE=E4=B8=BA=E7=A9=BA=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/UserSelect/index.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/UserSelect/index.vue b/src/components/UserSelect/index.vue index a78a10a..c940b69 100644 --- a/src/components/UserSelect/index.vue +++ b/src/components/UserSelect/index.vue @@ -168,6 +168,9 @@ const confirm = () => { }; const computedIds = (data) => { + if (data === '' || data === null || data === undefined) { + return []; + } if (data instanceof Array) { return data.map((item) => String(item)); } else if (typeof data === 'string') {