mirror of
https://gitee.com/JavaLionLi/plus-ui.git
synced 2026-09-13 07:43:43 +08:00
fix 修复 初始化用户选择组件 数据为空导致的问题
This commit is contained in:
parent
43b4e74c9c
commit
4c607f6915
@ -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') {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user