|
@@ -32,7 +32,7 @@ async function uploadToBackend(zipBlob: Blob, userDetails: any, exportInfo: any)
|
|
|
formData.append('description', description);
|
|
formData.append('description', description);
|
|
|
|
|
|
|
|
// 发送POST请求到后端接口
|
|
// 发送POST请求到后端接口
|
|
|
- const response = await fetch('http://localhost:3010/api/records/upload', {
|
|
|
|
|
|
|
+ const response = await fetch('http://52.197.128.126/api/records/upload', {
|
|
|
method: 'POST',
|
|
method: 'POST',
|
|
|
body: formData
|
|
body: formData
|
|
|
});
|
|
});
|