mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 05:36:05 +00:00
feat(plugin-workflow): refresh the list after sync (#4177)
This commit is contained in:
parent
05c5acd8b7
commit
c23631be4a
@ -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'));
|
||||
},
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user