chore: 整理项目结构,清理归档文件,更新部署配置
This commit is contained in:
@@ -115,8 +115,9 @@ export async function uploadImage(file: File): Promise<{
|
||||
'/messages/image',
|
||||
formData,
|
||||
{
|
||||
// ISS-B4 修复:不显式设置 Content-Type,让浏览器自动生成带 boundary 的 multipart/form-data
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data',
|
||||
'Content-Type': undefined,
|
||||
},
|
||||
}
|
||||
)
|
||||
@@ -141,8 +142,9 @@ export async function uploadMessageFile(file: File): Promise<{
|
||||
'/messages/file',
|
||||
formData,
|
||||
{
|
||||
// ISS-B4 修复:不显式设置 Content-Type,让浏览器自动生成带 boundary 的 multipart/form-data
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data',
|
||||
'Content-Type': undefined,
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user