Fix: Memory-related bug fixes (#12226)

### What problem does this PR solve?

Fix: bugs fix
- table -> Table
- memory delete fail
- memory copywriting modified

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
chanx
2025-12-26 12:24:05 +08:00
committed by GitHub
parent 52dbacc506
commit 894bf995bb
14 changed files with 270 additions and 58 deletions

View File

@ -266,20 +266,19 @@ export const useRunDocument = () => {
mutationFn: async ({
documentIds,
run,
shouldDelete,
option,
}: {
documentIds: string[];
run: number;
shouldDelete: boolean;
option?: { delete: boolean; apply_kb: boolean };
}) => {
queryClient.invalidateQueries({
queryKey: [DocumentApiAction.FetchDocumentList],
});
const ret = await kbService.document_run({
doc_ids: documentIds,
run,
delete: shouldDelete,
...option,
});
const code = get(ret, 'data.code');
if (code === 0) {