diff --git a/packages/actions/src/actions/common.ts b/packages/actions/src/actions/common.ts index 537793f2f..3087f11d6 100644 --- a/packages/actions/src/actions/common.ts +++ b/packages/actions/src/actions/common.ts @@ -347,6 +347,7 @@ export async function destroy(ctx: Context, next: Next) { where: resourceKey ? { [primaryKey]: resourceKey } : where, // @ts-ignore hooks 里添加 context ...commonOptions, + individualHooks: true, }); ctx.body = data; }