Open jackywongmm opened 5 years ago
const canvasObj = document.getElementById('qrimg') // canvas dom QRCode.toCanvas(canvasObj, url, (error) => { if (error) { console.error(error) } else { // 下载 const Ob = document.getElementById('down') Ob.href = canvasObj.toDataURL() Ob.download = `${this.alterParams.NAME}-渠道二维码` } })