fix(admin,server): 上传改用 file.buffer 并移除手写 multipart 头

This commit is contained in:
2026-08-07 16:37:55 +08:00
parent 54b002455f
commit 899d2dde5b
16 changed files with 19 additions and 40 deletions

View File

@@ -35,7 +35,6 @@ export const aiChatApi = {
form.append('file', file);
return (
await api.post<AiApiResponse<AiAttachment>>('/ai/chat/attachments', form, {
headers: { 'Content-Type': 'multipart/form-data' },
timeout: 120_000,
})
).data;