From dfe19ca71046430340d72e5f662d9af1a10be122 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 28 Jul 2024 19:41:07 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BB=A3=E7=A0=81=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E3=80=91cloneDeep=20=E6=B7=B1=E6=8B=B7=E8=B4=9D=E5=AF=B9?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E7=9A=84=E5=A4=84=E7=90=86=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sheep/helper/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sheep/helper/utils.js b/sheep/helper/utils.js index bcb5d25e..15dec799 100644 --- a/sheep/helper/utils.js +++ b/sheep/helper/utils.js @@ -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) {