feat: 1. 实现一键替换。

2. 优化追加附件和模板上传的样式。
This commit is contained in:
2025-12-03 12:07:56 +08:00
parent 2897423404
commit d88cfc818b
13 changed files with 627 additions and 141 deletions
+2 -2
View File
@@ -581,7 +581,7 @@ export async function getDocumentTypes(token?: string): Promise<{data: DocumentT
* @returns 文档状态列表
*/
export async function getDocumentsStatus(
documentIds: number[],
documentIds: number[],
attachmentIds?: number[],
token?: string
): Promise<{data: Document[]; error?: never} | {data?: never; error: string; status?: number}> {
@@ -650,7 +650,7 @@ export async function getDocumentsStatus(
return { data: allData };
} catch (error) {
console.error('获取文档状态失败:', error);
return {
return {
error: error instanceof Error ? error.message : '获取文档状态失败',
status: 500
};