The picture generated by html2canvase is empty.

problem description

the code is as follows:

var dom = document.getElementById("photoCon1")
html2canvas(dom, {useCORS: true}).then(canvas => {
   // canvas DOM    
   document.body.appendChild(canvas);
});

the project framework uses vue, to get the canvas in the above way, which is always empty. I would like to ask if you have encountered this situation.

Apr.03,2021

should be a cross-domain picture


take a look at your own style, have you put iframe display none

Menu