【代码修复】cloneDeep 深拷贝对列表的处理错误

pull/63/MERGE
YunaiV 2024-07-28 19:41:07 +08:00
parent d716bc4619
commit dfe19ca710
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ export function last(data) {
}
export function cloneDeep(obj) {
const d = isArray(obj) ? obj : {};
const d = isArray(obj) ? [...obj] : {};
if (isObject(obj)) {
for (const key in obj) {