From e215bd2ad7ea76a6686e5c437a42abe06633595a Mon Sep 17 00:00:00 2001 From: jixinbao Date: Tue, 6 Aug 2024 16:00:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=20=E4=BF=AE=E6=AD=A3=20createImage=20?= =?UTF-8?q?=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/canvas/canvas.uvue | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/pages/component/canvas/canvas.uvue b/pages/component/canvas/canvas.uvue index b6703567..80987aec 100644 --- a/pages/component/canvas/canvas.uvue +++ b/pages/component/canvas/canvas.uvue @@ -17,10 +17,10 @@ {{testToDataURLResult}} - - 测试 createImage 结果: - {{testCreateImage}} - + + 测试 createImage 结果: + {{testCreateImage}} + @@ -33,7 +33,7 @@ canvasToDataURL: {{dataBase64.slice(0,22)}}... - + CanvasContext API 演示 @@ -100,7 +100,6 @@ success: (res : CanvasContext) => { this.context = res.getContext('2d'); this.clearCanvasRect() - // hidpi(this.context.canvas); let image = res.createImage(); image.src = "../../static/logo.png" image.onload = () => { @@ -111,7 +110,7 @@ fail: (err : UniError) => { console.log(err); } - } as CreateCanvasContextAsyncOptions) + }) }, useAsync() { -- GitLab