From f9ba8b8df56305c69b8823d2f1520701133b0022 Mon Sep 17 00:00:00 2001 From: roymondchen Date: Tue, 29 Aug 2023 18:47:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(editor):=20=E6=96=B0=E5=A2=9E=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=BA=90=E5=AD=97=E6=AE=B5=E5=8F=97=E4=B8=8A=E4=B8=80?= =?UTF-8?q?=E6=AC=A1=E6=96=B0=E5=A2=9E=E6=95=B0=E6=8D=AE=E5=BD=B1=E5=93=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/editor/src/utils/data-source/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/editor/src/utils/data-source/index.ts b/packages/editor/src/utils/data-source/index.ts index 7d8dbe22..bc4242e4 100644 --- a/packages/editor/src/utils/data-source/index.ts +++ b/packages/editor/src/utils/data-source/index.ts @@ -14,7 +14,7 @@ const fillConfig = (config: FormConfig): FormConfig => [ { name: 'fields', type: 'data-source-fields', - defaultValue: [], + defaultValue: () => [], }, ], }, @@ -25,7 +25,7 @@ const fillConfig = (config: FormConfig): FormConfig => [ { name: 'methods', type: 'data-source-methods', - defaultValue: [], + defaultValue: () => [], }, ], },