mirror of
https://gitee.com/yudaocode/yudao-mall-uniapp.git
synced 2025-12-30 01:32:26 +00:00
fix:uploadFilesFromPath 上传时,directory 存在 “[object Undefined]” 的情况
This commit is contained in:
@@ -175,7 +175,7 @@ function uploadCloudFiles(files, max = 5, onUploadProgress) {
|
||||
});
|
||||
}
|
||||
|
||||
function uploadFilesFromPath(path, directory) {
|
||||
function uploadFilesFromPath(path, directory = '') {
|
||||
// 目的:用于微信小程序,选择图片时,只有 path
|
||||
return uploadFiles(
|
||||
Promise.resolve({
|
||||
|
||||
Reference in New Issue
Block a user