src/utils/exportLUImage.js
@@ -79,10 +79,10 @@ } }) p.then(res => { opts.getImage = function(image) { opts.getImage = function (image) { return base64DataURLToArrayBuffer(image) } opts.getSize = function() { opts.getSize = function () { return [480, 300] } @@ -144,7 +144,7 @@ var image = new Image() image.crossOrigin = '' image.src = url image.onload = function() { image.onload = function () { base64Img = imageToBase64(image) cb && cb(base64Img) }