From 20431489a88e9ff41ee53c22767f21372d7d487c Mon Sep 17 00:00:00 2001 From: hdx Date: Mon, 5 Aug 2024 19:20:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(create-canvas-context-async):=20=E9=AB=98?= =?UTF-8?q?=E6=B8=85=E9=80=BB=E8=BE=91=E5=A4=AA=E6=99=9A=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E5=AE=BD=E9=AB=98=E4=B8=8D=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../create-canvas-context-async.uvue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pages/API/create-canvas-context-async/create-canvas-context-async.uvue b/pages/API/create-canvas-context-async/create-canvas-context-async.uvue index 780091f3..e4f6f789 100644 --- a/pages/API/create-canvas-context-async/create-canvas-context-async.uvue +++ b/pages/API/create-canvas-context-async/create-canvas-context-async.uvue @@ -46,11 +46,10 @@ component: this, success: (context : CanvasContext) => { this.canvasContext = context.getContext('2d')!; + hidpi(this.canvasContext!.canvas); this.canvasWidth = this.canvasContext!.canvas.width; this.canvasHeight = this.canvasContext!.canvas.height; - hidpi(this.canvasContext!.canvas); - // #ifdef WEB context.toBlob((blob : Blob) => { this.testToBlobResult = (blob.size > 0 && blob.type == 'image/jpeg') -- GitLab