优化代码

This commit is contained in:
java110 2021-07-08 13:47:43 +08:00
parent 0deee1dab1
commit e7b106893d

View File

@ -236,8 +236,6 @@
h = Math.floor(h / _rate);
}
}
canvas.width = w;
canvas.height = h;
canvas.getContext('2d').drawImage(video, 0, 0,w,h);
var data = canvas.toDataURL('image/jpeg', 0.3);
vc.component.editOwnerInfo.ownerPhoto = data;