diff --git a/packages/core/client/src/schema-component/antd/collection-select/__tests__/collection-select.test.tsx b/packages/core/client/src/schema-component/antd/collection-select/__tests__/collection-select.test.tsx index 5f711873f2..8356660b10 100644 --- a/packages/core/client/src/schema-component/antd/collection-select/__tests__/collection-select.test.tsx +++ b/packages/core/client/src/schema-component/antd/collection-select/__tests__/collection-select.test.tsx @@ -54,7 +54,7 @@ describe('CollectionSelect', () => { role="button" >
& { CustomDropdownRender?: (v: any) => any; optionFilter?: (option: any) => boolean; toOptionsItem?: (data) => any; + onSuccess?: (data) => any; }; const InternalRemoteSelect = withDynamicSchemaProps( @@ -68,6 +69,7 @@ const InternalRemoteSelect = withDynamicSchemaProps( dataSource: propsDataSource, toOptionsItem = (value) => value, popupMatchSelectWidth = false, + onSuccess, ...others } = props; const dataSource = useDataSourceKey(); @@ -178,6 +180,7 @@ const InternalRemoteSelect = withDynamicSchemaProps( { manual, debounceWait: wait, + onSuccess, ...(service.defaultParams ? { defaultParams: [service.defaultParams] } : {}), }, ); diff --git a/packages/plugins/@nocobase/plugin-field-attachment-url/src/client/component/AttachmentUrl.tsx b/packages/plugins/@nocobase/plugin-field-attachment-url/src/client/component/AttachmentUrl.tsx index 0cfa332988..f8eb0f2c89 100644 --- a/packages/plugins/@nocobase/plugin-field-attachment-url/src/client/component/AttachmentUrl.tsx +++ b/packages/plugins/@nocobase/plugin-field-attachment-url/src/client/component/AttachmentUrl.tsx @@ -113,7 +113,6 @@ const InnerAttachmentUrl = (props) => { if (underFilter) { return ; } - console.log(collectionField); return (