diff --git a/packages/plugin-action-logs/src/hooks/after-create.ts b/packages/plugin-action-logs/src/hooks/after-create.ts index 6d811c928..36aea421c 100644 --- a/packages/plugin-action-logs/src/hooks/after-create.ts +++ b/packages/plugin-action-logs/src/hooks/after-create.ts @@ -33,7 +33,7 @@ export default async function (model, options) { if (changed) { changed.forEach((key: string) => { const field = fields.get(key) || fieldsList.find((item: Field) => item.options.field === key); - if (field) { + if (field && !field.options.hidden && field.options.type !== 'formula') { changes.push({ field: field.options, after: model.get(key) diff --git a/packages/plugin-action-logs/src/hooks/after-update.ts b/packages/plugin-action-logs/src/hooks/after-update.ts index 9498f2050..d1e7e1613 100644 --- a/packages/plugin-action-logs/src/hooks/after-update.ts +++ b/packages/plugin-action-logs/src/hooks/after-update.ts @@ -16,7 +16,7 @@ export default async function (model, options) { if (changed) { changed.forEach((key: string) => { const field = fields.get(key) || fieldsList.find((item: Field) => item.options.field === key); - if (field && field.options.type !== 'formula') { + if (field && !field.options.hidden && field.options.type !== 'formula') { changes.push({ field: field.options, after: model.get(key),