const canvas = await html2canvas(element, {
useCORS: true,
scale: 2,
backgroundColor: '#ffffff',
allowTaint: true,
foreignObjectRendering: false,
imageTimeout: 0,
logging: false,
quality: 1.0,
})
const cropCanvas = document.createElement('canvas')
const cropHeight = canvas.height - 5
cropCanvas.width = canvas.width
cropCanvas.height = cropHeight
const ctx = cropCanvas.getContext('2d')
ctx.mozImageSmoothingEnabled = false
ctx.webkitImageSmoothingEnabled = false
ctx.msImageSmoothingEnabled = false
ctx.imageSmoothingEnabled = false
ctx.drawImage(canvas, 0, 0, canvas.width, cropHeight, 0, 0, canvas.width, cropHeight)
const base64Data = cropCanvas.toDataURL('image/png', 1.0)
imageUrl.value = base64Data
图片可以正常展示出来 但是长按保存和分享朋友都会提示保存失败

你好,麻烦提供下机型,微信版本号和复现链接
确实是只有https的图片才可以保存,使用base64的保存不了,官方什么时候能修复一下?