mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-24 18:40:22 +08:00
fix: 空数组覆盖有效数组 (#2687)
This commit is contained in:
parent
5e8ef2f64f
commit
401fcaf325
@ -43,7 +43,7 @@ function tryConstructArray(field: string, values: Recordable = {}): any[] | unde
|
||||
set(result, index, values[k.trim()]);
|
||||
});
|
||||
|
||||
return result.length ? result : undefined;
|
||||
return result.filter(Boolean).length ? result : undefined;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user