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') {