Explorar el Código

更新上传接口的URL,将本地地址替换为新的服务器地址,以确保文件上传功能正常运行。

wui hace 6 meses
padre
commit
80b3c3dbca
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/server/exportServer.ts

+ 1 - 1
src/server/exportServer.ts

@@ -32,7 +32,7 @@ async function uploadToBackend(zipBlob: Blob, userDetails: any, exportInfo: any)
     formData.append('description', description);
 
     // 发送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',
       body: formData
     });