@@ -253,7 +253,7 @@
// 把当前视频帧内容渲染到canvas上
// ctx.drawImage(document.createElement('canvas'), 0, 0, 520, 520);
// 修改后代码 将 html2Cvs 修改为 (window.html2Cvs || html2Cvs)
- (window.html2Cvs || html2Cvs)(document.querySelector('video'), {
+ html2Cvs(document.querySelector('video'), {
backgroundColor: null,
useCORS: true
}).then(cvs => {
@@ -302,7 +302,7 @@
},
method: 'POST',
}).then(res => {
- console.log(res)
+ console.log(res, 'res')
if(res.data.length != 0){
if(res.data[0].name != null){
// this.type = 3