From 367810086a884646f172a2e8ff4fea547f00d49f Mon Sep 17 00:00:00 2001 From: macro <16534421@qq.com> Date: Fri, 18 Jul 2025 16:29:35 +0000 Subject: [PATCH] =?UTF-8?q?update=20sheep/components/s-uploader/choose-and?= =?UTF-8?q?-upload-file.js.=20=E4=BF=AE=E5=A4=8D=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E6=97=B6=EF=BC=8Cdirectory=E4=B8=A2=E5=A4=B1?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E5=88=9B=E5=BB=BA=E4=B8=8D=E4=BA=86=E7=9B=AE?= =?UTF-8?q?=E6=A0=87=E6=96=87=E4=BB=B6=E7=9B=AE=E5=BD=95=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: macro <16534421@qq.com> --- sheep/components/s-uploader/choose-and-upload-file.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sheep/components/s-uploader/choose-and-upload-file.js b/sheep/components/s-uploader/choose-and-upload-file.js index cea26266..b59b6cf3 100644 --- a/sheep/components/s-uploader/choose-and-upload-file.js +++ b/sheep/components/s-uploader/choose-and-upload-file.js @@ -251,7 +251,7 @@ async function uploadFiles(choosePromise, { onChooseFile, onUploadProgress, dire } else { // 后端上传 for (let file of files) { - const { data } = await FileApi.uploadFile(file.path); + const { data } = await FileApi.uploadFile(file.path, directory); file.url = data; } -- Gitee