From 1f287145f477e609b80b5a59b7787d5cd1a66213 Mon Sep 17 00:00:00 2001 From: Kirk Lin Date: Sat, 10 Jun 2023 17:19:18 +0800 Subject: [PATCH] =?UTF-8?q?fix(deepMerge):=20=E5=8E=BB=E6=8E=89=E5=90=88?= =?UTF-8?q?=E5=B9=B6=E9=94=99=E8=AF=AF=E7=9A=84=E4=BB=A3=E7=A0=81=20(#2848?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/index.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/utils/index.ts b/src/utils/index.ts index 5ff13cf44..6e436689a 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -52,14 +52,6 @@ export function deepMerge { - if (isObject(objValue) && isObject(srcValue)) { - return mergeWith(cloneDeep(objValue), srcValue, (prevValue, nextValue) => { - // 如果是数组,合并数组(去重) If it is an array, merge the array (remove duplicates) - return isArray(prevValue) ? unionWith(prevValue, nextValue, isEqual) : undefined; - }); - if (!target) { return source as T & U; }