更新附件追加功能,新增removeAnnotations参数以控制注释移除逻辑,优化文件上传接口调用。
This commit is contained in:
@@ -794,7 +794,8 @@ export default function DocumentsIndex() {
|
||||
attachmentMergeMode,
|
||||
true, // isReprocess
|
||||
attachmentRemark || undefined,
|
||||
loaderData.frontendJWT as string | undefined
|
||||
loaderData.frontendJWT as string | undefined,
|
||||
true // removeAnnotations
|
||||
);
|
||||
|
||||
if (result.error) {
|
||||
@@ -1064,7 +1065,7 @@ export default function DocumentsIndex() {
|
||||
<i className="ri-download-line"></i>
|
||||
下载
|
||||
</button>
|
||||
{record.type === 1 && record.fileStatus === 'Processed' && (
|
||||
{record.type === '1' && record.fileStatus === 'Processed' && (
|
||||
<>
|
||||
<button
|
||||
type="button"
|
||||
|
||||
@@ -921,7 +921,8 @@ export default function FilesUpload() {
|
||||
attachmentMergeMode,
|
||||
true, // isReprocess
|
||||
attachmentRemark || undefined,
|
||||
loaderData.frontendJWT as string | undefined
|
||||
loaderData.frontendJWT as string | undefined,
|
||||
true // removeAnnotations
|
||||
);
|
||||
|
||||
if (result.error) {
|
||||
|
||||
Reference in New Issue
Block a user