Skip to content

Commit

Permalink
feat(h5): chooseImage回调中加入了originalFileObj属性
Browse files Browse the repository at this point in the history
  • Loading branch information
Littly committed Dec 31, 2019
1 parent 505fe4d commit 3a20fe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro-h5/src/api/image/chooseImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const chooseImage = function (options) {
})
let url = URL.createObjectURL(blob)
res.tempFilePaths.push(url)
res.tempFiles.push({path: url, size: item.size, type: item.type})
res.tempFiles.push({path: url, size: item.size, type: item.type, originalFileObj: item})
})
typeof success === 'function' && success(res)
typeof complete === 'function' && complete(res)
Expand Down

0 comments on commit 3a20fe4

Please sign in to comment.