fix(plugin-workflow): fix context data of form trigger (#2749)

This commit is contained in:
Junyi 2023-10-06 10:28:06 +08:00 committed by GitHub
parent b95f4a723a
commit 68009d3d32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,7 +88,7 @@ export default class FormTrigger extends Trigger {
appends,
});
}
this.plugin.trigger(workflow, { data: payload, user: currentUser });
this.plugin.trigger(workflow, { data: toJSON(payload), user: toJSON(currentUser) });
});
} else {
const data = trigger[1] ? get(values, trigger[1]) : values;