Commit 79d7a6c5 authored by 田翔's avatar 田翔

fix: 代码优化

parent 2a185e6d
Pipeline #89972 passed with stages
......@@ -339,7 +339,7 @@ const QRCodeDesign = (props, ref) => {
for (let i = 0; i < dataSource.length; i++) {
let row = dataSource[i]
const canvas = document.getElementById(row.DeviceCode);
const can = await html2canvas(canvas, { allowTaint: false, useCORS: true, width: 310, scale: 2 })
const can = await html2canvas(canvas, { allowTaint: false, useCORS: true, width: 610, scale: 6, })
let img = new Image()
img.src = can.toDataURL('image/png')
zip.file(`${row.DeviceName}_${row.DeviceCode}.png`, dataURLtoBlob(img.src))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment