From 0e89016c0474427d98bae0eea24ecdf311d9d1fa Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 29 Aug 2024 17:09:59 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E4=BB=AA=E8=A1=A8=E6=9D=BF=E3=80=81?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=B7=B1=E5=BA=A6=E5=A4=8D=E5=88=B6=EF=BC=8C=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=90=AB=E6=9C=89=E8=87=AA=E5=AE=9A=E4=B9=89=E5=8A=A8=E6=80=81?= =?UTF-8?q?=E8=BF=87=E6=BB=A4=E6=97=B6=E9=97=B4=E7=9A=84=E5=9B=BE=E8=A1=A8?= =?UTF-8?q?=E5=A4=8D=E5=88=B6=E5=90=8E=E9=A6=96=E6=AC=A1=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/utils/utils.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/core-frontend/src/utils/utils.ts b/core/core-frontend/src/utils/utils.ts index 581c27f3c4..c82bb08f12 100644 --- a/core/core-frontend/src/utils/utils.ts +++ b/core/core-frontend/src/utils/utils.ts @@ -10,6 +10,9 @@ export function deepCopy(target) { for (const key in target) { if (target[key] === null || target[key] === undefined) { result[key] = target[key] + } else if (target[key] instanceof Date) { + // 日期特殊处理 + result[key] = new Date(target[key]) } else if (typeof target[key] == 'object') { result[key] = deepCopy(target[key]) } else {