Pre Merge pull request !240 from 蓝梦/Bug修复

This commit is contained in:
蓝梦 2025-08-28 07:01:57 +00:00 committed by Gitee
commit 6243ea310c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -173,7 +173,7 @@ const computedIds = (data) => {
} else if (typeof data === 'string') {
return data.split(',');
} else if (typeof data === 'number') {
return [data];
return [String(data)];
} else {
console.warn('<UserSelect> The data type of data should be array or string or number, but I received other');
return [];