浏览代码

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)
tags/v0.18.0
balibabu 6 个月前
父节点
当前提交
ed352710ec
没有帐户链接到提交者的电子邮件

+ 4
- 0
web/src/hooks/document-hooks.ts 查看文件

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

const ret = await kbService.document_run({
doc_ids: documentIds,
run,

+ 2
- 6
web/src/pages/add-knowledge/components/knowledge-file/parsing-status-cell/index.tsx 查看文件

@@ -90,9 +90,7 @@ export const ParsingStatusCell = ({ record }: IProps) => {
const text = record.run;
const runningStatus = RunningStatusMap[text];
const { t } = useTranslation();
const { handleRunDocumentByIds, loading } = useHandleRunDocumentByIds(
record.id,
);
const { handleRunDocumentByIds } = useHandleRunDocumentByIds(record.id);

const isRunning = isParserRunning(text);

@@ -130,9 +128,7 @@ export const ParsingStatusCell = ({ record }: IProps) => {
cancelText={t('common.cancel')}
>
<div
className={classNames(styles.operationIcon, {
[styles.operationIconSpin]: loading,
})}
className={classNames(styles.operationIcon)}
onClick={
record.chunk_num === 0 ? handleOperationIconClick(false) : () => {}
}

正在加载...
取消
保存