diff --git a/packages/core/client/src/block-provider/FormBlockProvider.tsx b/packages/core/client/src/block-provider/FormBlockProvider.tsx index e4a428b973..a1b1b1ccc8 100644 --- a/packages/core/client/src/block-provider/FormBlockProvider.tsx +++ b/packages/core/client/src/block-provider/FormBlockProvider.tsx @@ -56,7 +56,7 @@ const InternalFormBlockProvider = (props) => { ); } else if ( formBlockValue.type === 'create' && - // 点击关系表格区块的 Add new 按钮,在弹窗中新增的表单区块,是不需要重置 record 的。在这里用 record 是否为空来判断 + // 关系表单区块的 record 应该是空的,因为其是一个创建数据的表单; !_.isEmpty(_.omit(record, ['__parent', '__collectionName'])) && // association 不为空,说明是关系区块 association