liushengqiang 1 year ago
parent
commit
9b306a8a09
1 changed files with 1 additions and 1 deletions
  1. 1 1
      public/share-orchestra-evaluating/index.html

+ 1 - 1
public/share-orchestra-evaluating/index.html

@@ -94,7 +94,7 @@
       // QRCode.toDataURL(location.origin + '/accompany/colexiu-report-share.html?id=' + (parseSearch.id || '') + '&musicId=' + (parseSearch.musicId || '') + '&client=web', { errorCorrectionLevel: 'H', width: 192 }, function (err, val) {
         // console.log(val)
         // document.getElementById('qrcode').setAttribute('src', val)
-        html2canvas(document.body)
+        html2canvas(document.body, {allowTaint: true, useCORS: true,})
         .then((canvas) => canvas.toDataURL())
         .then(res => {
           // console.log(res)