mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-08 16:38:01 +08:00
fix: record generated wiki page versions (#17931)
This commit is contained in:
@@ -120,7 +120,7 @@ export enum ParseType {
|
||||
export enum ProcessingType {
|
||||
knowledgeGraph = 'Graph',
|
||||
raptor = 'RAPTOR',
|
||||
artifact = 'Artifact',
|
||||
artifact = 'wiki',
|
||||
skill = 'Skill',
|
||||
mindmap = 'Mindmap',
|
||||
timeline = 'Timeline',
|
||||
|
||||
@@ -727,13 +727,15 @@ export const useUpdateArtifactPage = () => {
|
||||
);
|
||||
if (data.code === 0) {
|
||||
message.success(i18n.t(`message.updated`));
|
||||
queryClient.invalidateQueries({
|
||||
queryKey: ArtifactKeys.detail(
|
||||
knowledgeBaseId,
|
||||
params.pageType,
|
||||
params.slug,
|
||||
),
|
||||
});
|
||||
const detailKey = ArtifactKeys.detail(
|
||||
knowledgeBaseId,
|
||||
params.pageType,
|
||||
params.slug,
|
||||
);
|
||||
if (data.data) {
|
||||
queryClient.setQueryData(detailKey, data.data);
|
||||
}
|
||||
await queryClient.invalidateQueries({ queryKey: detailKey });
|
||||
}
|
||||
return data;
|
||||
},
|
||||
@@ -972,7 +974,7 @@ export const useRunArtifactIndex = (kind: string) => {
|
||||
if (isGoDatasetBackend()) {
|
||||
throw new Error(i18n.t('message.compileNotSupported'));
|
||||
}
|
||||
const { data } = await runIndex(knowledgeBaseId, 'artifact');
|
||||
const { data } = await runIndex(knowledgeBaseId, 'wiki');
|
||||
if (data?.code === 0) {
|
||||
message.success(i18n.t('message.operated'));
|
||||
queryClient.invalidateQueries({
|
||||
|
||||
Reference in New Issue
Block a user