mirror of
https://gitee.com/dromara/go-view.git
synced 2024-12-04 20:59:26 +08:00
fix: 尝试处理背景图片无法截图的问题
This commit is contained in:
parent
130e4a3659
commit
9fd85761d7
@ -177,7 +177,9 @@ export const canvasCut = (html: HTMLElement | null, callback?: Function) => {
|
||||
}
|
||||
|
||||
html2canvas(html, {
|
||||
backgroundColor: null
|
||||
backgroundColor: null,
|
||||
allowTaint: true,
|
||||
useCORS: true
|
||||
}).then((canvas: HTMLCanvasElement) => {
|
||||
window['$message'].success('导出成功!')
|
||||
downloadByA(canvas.toDataURL(), undefined, 'png')
|
||||
|
Loading…
Reference in New Issue
Block a user