-
Notifications
You must be signed in to change notification settings - Fork 74
Open
Description
<div data-v-c0f80114="" class="qrcode__wrap target" qroptions="[object Object]"><canvas width="1027" height="1027" style="width: 100%;"></canvas></div>
像这样的元素截图显示不出来
const blob = await domToBlob(clonedElement, {
scale: type ? 1 : 0.2,
quality: type ? 1 : 0.2,
fetch: {
requestInit: {
cache: 'no-cache',
},
},
})
const formData = new FormData()
formData.append('file', blob, 'cover.jpeg')
const { url } = await getImgS3Api(formData)
return url
} catch (error) {
console.error('Screenshot failed:', error)
throw new Error('生成截图失败')
}
Metadata
Metadata
Assignees
Labels
No labels