|
@@ -38,8 +38,7 @@ window.uploadFile = async function ({ file, uuid, userid, folderid, moFolderid }
|
|
const res2 = await fetch('http://10.3.16.166:7004/file/addFile', {
|
|
const res2 = await fetch('http://10.3.16.166:7004/file/addFile', {
|
|
method: 'POST',
|
|
method: 'POST',
|
|
headers: {
|
|
headers: {
|
|
- 'Accept': 'application/json',
|
|
|
|
- 'Content-Type': 'application/json;charset=UTF-8'
|
|
|
|
|
|
+ 'Content-Type': 'application/x-www-form-urlencoded'
|
|
},
|
|
},
|
|
body: JSON.stringify(params) // 将params对象转换为JSON字符串
|
|
body: JSON.stringify(params) // 将params对象转换为JSON字符串
|
|
});
|
|
});
|