mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
优化代码
This commit is contained in:
parent
0deee1dab1
commit
e7b106893d
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user