diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/workflows.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/workflows.ts index a15fdad0f2..0b01456cd0 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/workflows.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/workflows.ts @@ -210,9 +210,11 @@ export const workflowSchema: ISchema = { useAction() { const { t } = useTranslation(); const { resource } = useResourceContext(); + const service = useResourceActionContext(); return { async run() { await resource.sync(); + await service?.refresh(); message.success(t('Operation succeeded')); }, };