!156 fix: 修复directory参数丢失导致无法创建目标文件目录的问题。

Merge pull request !156 from macro/fix/20250719-uploadFiles
pull/154/MERGE
芋道源码 2025-07-20 07:26:10 +00:00 committed by Gitee
commit a2f3c598fc
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}