提交 a2794392 编写于 作者: D DCloud_LXH

feat: uploadFile 的 files 参数每项支持 uri 或 filePath

上级 d11ce311
......@@ -62,7 +62,7 @@ const createUploadTaskById = function (uploadTaskId, {
}
if (files && files.length) {
files.forEach(file => {
uploader.addFile(getRealPath(file.uri), {
uploader.addFile(getRealPath(file.uri || file.filePath), {
key: file.name || 'file'
})
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册