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',
headers: {
'Content-Type': 'application/json'
'Content-Type': 'multipart/form-data'
},
body: JSON.stringify({
doc_name: documentName,

View File

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