4.6.4-alpha (#582)

This commit is contained in:
Archer
2023-12-08 15:01:11 +08:00
committed by GitHub
parent 54d52d8d25
commit b58249fc3a
66 changed files with 962 additions and 527 deletions

View File

@@ -173,7 +173,9 @@ const FileSelect = ({
case 'pdf':
return readPdfContent(file);
case 'docx':
return readDocContent(file);
return readDocContent(file, {
fileId
});
}
return '';
})();

View File

@@ -408,7 +408,7 @@ export function RawSourceText({
await getFileAndOpen(sourceId as string);
} catch (error) {
toast({
title: getErrText(error, '获取文件地址失败'),
title: t(getErrText(error, 'error.fileNotFound')),
status: 'error'
});
}