feat(plugin-workflow): refresh the list after sync (#4177)

This commit is contained in:
Junyi 2024-04-28 17:08:50 +08:00 committed by GitHub
parent 05c5acd8b7
commit c23631be4a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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'));
},
};