diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/roleCollections.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/roleCollections.ts index 98e0cb8ad7..fd292052fd 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/roleCollections.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/roleCollections.ts @@ -4,7 +4,7 @@ import { useRoleResourceValues } from './useRoleResourceValues'; import { useSaveRoleResourceAction } from './useSaveRoleResourceAction'; const collection = { - name: 'remoteCollections', + name: 'dataSourcesCollections', targetKey: 'name', filterTargetKey: 'name', fields: [ @@ -78,13 +78,13 @@ export const roleCollectionsSchema: ISchema = { sourceKey: 'name', targetKey: 'name', }, - resourceName: 'roles.remoteCollections', + resourceName: 'roles.dataSourcesCollections', request: { - resource: 'roles.remoteCollections', + resource: 'roles.dataSourcesCollections', action: 'list', params: { pageSize: 20, - filter: { hidden: { $isFalsy: true }, connectionName:"{{connectionName}}" }, + filter: { hidden: { $isFalsy: true }, connectionName: '{{connectionName}}' }, sort: ['sort'], appends: ['fields'], },