diff --git a/packages/plugin-permissions/src/actions/roles.collections.ts b/packages/plugin-permissions/src/actions/roles.collections.ts index 281d177b7..3c732586c 100644 --- a/packages/plugin-permissions/src/actions/roles.collections.ts +++ b/packages/plugin-permissions/src/actions/roles.collections.ts @@ -10,7 +10,7 @@ export async function list(ctx: actions.Context, next: actions.Next) { }); await actions.common.list(ctx, async () => { const permissions = await associated.getPermissions(); - ctx.body.rows.forEach(item => { + (ctx.body.rows as any).forEach(item => { const permission = permissions.find(p => p.collection_name === item.get('name')); if (permission) { // item.permissions = [permission]; // 不输出