feat: add GraphAvatar to graph list #918 (#1385)

### What problem does this PR solve?

feat: add GraphAvatar to graph list #918

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-07-05 11:04:19 +08:00
committed by GitHub
parent a3f4258cfc
commit 74ec3bc4d9
6 changed files with 37 additions and 22 deletions

View File

@ -111,7 +111,12 @@ export const useSetFlow = () => {
mutateAsync,
} = useMutation({
mutationKey: ['setFlow'],
mutationFn: async (params: { id?: string; title?: string; dsl?: DSL }) => {
mutationFn: async (params: {
id?: string;
title?: string;
dsl?: DSL;
avatar?: string;
}) => {
const { data } = await flowService.setCanvas(params);
if (data.retcode === 0) {
message.success(