Feat: Remove the rotation state of the button that parses the document #7008 (#7009)

### What problem does this PR solve?

Feat: Remove the rotation state of the button that parses the document
#7008
### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu 2025-04-14 18:50:11 +08:00 committed by GitHub
parent 0a0c1edce3
commit ed352710ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View File

@ -325,6 +325,10 @@ export const useRunNextDocument = () => {
run: number; run: number;
shouldDelete: boolean; shouldDelete: boolean;
}) => { }) => {
queryClient.invalidateQueries({
queryKey: ['fetchDocumentList'],
});
const ret = await kbService.document_run({ const ret = await kbService.document_run({
doc_ids: documentIds, doc_ids: documentIds,
run, run,

View File

@ -90,9 +90,7 @@ export const ParsingStatusCell = ({ record }: IProps) => {
const text = record.run; const text = record.run;
const runningStatus = RunningStatusMap[text]; const runningStatus = RunningStatusMap[text];
const { t } = useTranslation(); const { t } = useTranslation();
const { handleRunDocumentByIds, loading } = useHandleRunDocumentByIds( const { handleRunDocumentByIds } = useHandleRunDocumentByIds(record.id);
record.id,
);
const isRunning = isParserRunning(text); const isRunning = isParserRunning(text);
@ -130,9 +128,7 @@ export const ParsingStatusCell = ({ record }: IProps) => {
cancelText={t('common.cancel')} cancelText={t('common.cancel')}
> >
<div <div
className={classNames(styles.operationIcon, { className={classNames(styles.operationIcon)}
[styles.operationIconSpin]: loading,
})}
onClick={ onClick={
record.chunk_num === 0 ? handleOperationIconClick(false) : () => {} record.chunk_num === 0 ? handleOperationIconClick(false) : () => {}
} }