From ce1066d6e36b885d4128395876af3ebeb0d1551d Mon Sep 17 00:00:00 2001 From: YunaiV Date: Fri, 2 May 2025 20:42:54 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E3=80=90=E5=85=A8=E5=B1=80?= =?UTF-8?q?=E3=80=91=E5=89=8D=E7=AB=AF=E7=9B=B4=E4=BC=A0=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E7=9A=84=20url=20=E5=A4=9A=E4=BA=86=E4=B8=80?= =?UTF-8?q?=E5=B1=82=20data=20=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/components/upload/use-upload.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web-antd/src/components/upload/use-upload.ts b/apps/web-antd/src/components/upload/use-upload.ts index 9794f6fa..572ae5c4 100644 --- a/apps/web-antd/src/components/upload/use-upload.ts +++ b/apps/web-antd/src/components/upload/use-upload.ts @@ -108,7 +108,7 @@ export const useUpload = (directory?: string) => { // 1.4. 记录文件信息到后端(异步) createFile0(presignedInfo, file); // 通知成功,数据格式保持与后端上传的返回结果一致 - return { data: presignedInfo.url }; + return { url: presignedInfo.url }; }); } else { // 模式二:后端上传