fix: Property 'rows' does not exist on type 'unknown'.
This commit is contained in:
parent
bfdb45a1ef
commit
fdc1ab03e7
@ -10,7 +10,7 @@ export async function list(ctx: actions.Context, next: actions.Next) {
|
|||||||
});
|
});
|
||||||
await actions.common.list(ctx, async () => {
|
await actions.common.list(ctx, async () => {
|
||||||
const permissions = await associated.getPermissions();
|
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'));
|
const permission = permissions.find(p => p.collection_name === item.get('name'));
|
||||||
if (permission) {
|
if (permission) {
|
||||||
// item.permissions = [permission]; // 不输出
|
// item.permissions = [permission]; // 不输出
|
||||||
|
Loading…
Reference in New Issue
Block a user