diff --git a/packages/core/client/src/schema-component/antd/action/Action.Designer.tsx b/packages/core/client/src/schema-component/antd/action/Action.Designer.tsx index f244e7b14..11e7693e0 100644 --- a/packages/core/client/src/schema-component/antd/action/Action.Designer.tsx +++ b/packages/core/client/src/schema-component/antd/action/Action.Designer.tsx @@ -196,7 +196,10 @@ export const ActionDesigner = (props) => { {isValid(fieldSchema?.['x-action-settings']?.['onSuccess']) && ( roleResources.get('usingActionsConfig')) .map((roleResources) => roleResources.get('name')); - ctx.body = collections - .map((collection) => { + ctx.body = { + count, + rows: collections.map((collection) => { const exists = roleResourcesNames.includes(collection.get('name')); const usingConfig: UsingConfigType = roleResourceActionResourceNames.includes(collection.get('name')) @@ -44,8 +51,11 @@ const roleCollectionsResource = { usingConfig, exists, }; - }) - .sort((a, b) => (a.name > b.name ? 1 : -1)); + }), + page: Number(page), + pageSize: Number(pageSize), + totalPage: totalPage(count, pageSize), + }; await next(); },