fix(UserSelect): 修复 用户选择组件 回显异常问题

This commit is contained in:
蓝梦 2025-08-28 14:45:29 +08:00
parent f84e95d735
commit 5ffe2e2949

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 [];