From 61433a72222ded723366987602973d64bad08319 Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Wed, 20 May 2020 11:01:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=91=84=E5=83=8F=E5=A4=B4?= =?UTF-8?q?=E6=8B=8D=E7=85=A7=E5=9B=BE=E7=89=87=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/property/addApplicationKey/addApplicationKey.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/components/property/addApplicationKey/addApplicationKey.js b/public/components/property/addApplicationKey/addApplicationKey.js index 0e6e54137..8a691a0ee 100644 --- a/public/components/property/addApplicationKey/addApplicationKey.js +++ b/public/components/property/addApplicationKey/addApplicationKey.js @@ -325,7 +325,7 @@ canvas.width = takeAddVideo.videoWidth; canvas.height = takeAddVideo.videoHeight; canvas.getContext('2d').drawImage(takeAddVideo, 0, 0); - var data = canvas.toDataURL('image/webp'); + var data = canvas.toDataURL('image/jpeg',1.0); vc.component.addApplicationKeyInfo.photo = data; //document.getElementById('photo').setAttribute('src', data); }