fix: add spin to parsing status icon of dataset table (#649)

### What problem does this PR solve?

fix: add spin to parsing status icon of dataset table
#648 

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
balibabu
2024-05-06 18:37:31 +08:00
committed by GitHub
parent 3050a8cb07
commit 385dbe5ab5
5 changed files with 65 additions and 9 deletions

View File

@ -7,6 +7,7 @@ import { useCallback, useMemo, useState } from 'react';
import { IHighlight } from 'react-pdf-highlighter';
import { useDispatch, useSelector } from 'umi';
import { useGetKnowledgeSearchParams } from './routeHook';
import { useOneNamespaceEffectsLoading } from './storeHooks';
export const useGetDocumentUrl = (documentId: string) => {
const url = useMemo(() => {
@ -222,3 +223,8 @@ export const useRunDocument = () => {
return runDocumentByIds;
};
export const useSelectRunDocumentLoading = () => {
const loading = useOneNamespaceEffectsLoading('kFModel', ['document_run']);
return loading;
};