fix: 关联表格添加无法使用引用模版 (#1510)

Reviewed-on: daoyoucloud/tachybase#1510
Reviewed-by: sealday <zhanglin@daoyoucloud.com>
Co-authored-by: wjh <wwwjh0710@163.com>
Co-committed-by: wjh <wwwjh0710@163.com>
This commit is contained in:
wjh 2024-09-05 14:07:04 +08:00 committed by sealday
parent 8a4bce3add
commit 829adcfc4e

View File

@ -128,6 +128,7 @@ export const useCreateFormBlock = () => {
dataSource: item.dataSource,
templateSchema: templateSchema,
collectionName: item.name,
association,
});
if (item.template && item.mode === 'reference') {
schema['x-template-key'] = item.template.key;