liushengqiang 2 년 전
부모
커밋
9b306a8a09
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)