fix(editor): 新增数据源字段受上一次新增数据影响

This commit is contained in:
roymondchen 2023-08-29 18:47:11 +08:00
parent cd50d36394
commit f9ba8b8df5

View File

@ -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: () => [],
},
],
},