提交 9953b704 编写于 作者: Q qiang

fix(App): 修复 iOS 端 canvas 组件绘制 uni.getImageInfo 临时路径跨域的问题

上级 eb936f88
......@@ -309,7 +309,14 @@ export default {
*/
function loadFile (path) {
function onError () {
image.src = src
const bitmap = new plus.nativeObj.Bitmap(`bitmap_${Date.now()}_${Math.random()}}`)
bitmap.load(path, function () {
image.src = bitmap.toBase64Data()
bitmap.clear()
}, function () {
bitmap.clear()
image.src = src
})
}
plus.io.resolveLocalFileSystemURL(path, function (entry) {
entry.file(function (file) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册