mirror of
https://github.com/Chanzhaoyu/chatgpt-web.git
synced 2025-07-27 08:47:29 +00:00
fix: 修复导出图片会丢失头像的问题 (#392)
This commit is contained in:
@@ -284,7 +284,9 @@ function handleExport() {
|
||||
try {
|
||||
d.loading = true
|
||||
const ele = document.getElementById('image-wrapper')
|
||||
const canvas = await html2canvas(ele as HTMLDivElement)
|
||||
const canvas = await html2canvas(ele as HTMLDivElement, {
|
||||
useCORS: true,
|
||||
})
|
||||
const imgUrl = canvas.toDataURL('image/png')
|
||||
const tempLink = document.createElement('a')
|
||||
tempLink.style.display = 'none'
|
||||
|
Reference in New Issue
Block a user