fix: change the content type

This commit is contained in:
shiweisong.ssw 2023-06-28 17:15:47 +08:00
parent 0949ef0fa3
commit 6c7d47d374
2 changed files with 2 additions and 2 deletions

View File

@ -352,7 +352,7 @@ const Documents = () => {
{ {
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json' 'Content-Type': 'multipart/form-data'
}, },
body: JSON.stringify({ body: JSON.stringify({
doc_name: documentName, doc_name: documentName,

View File

@ -349,7 +349,7 @@ const Index = () => {
{ {
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json' 'Content-Type': 'multipart/form-data'
}, },
body: JSON.stringify({ body: JSON.stringify({
doc_name: documentName, doc_name: documentName,