diff --git a/pages/component/canvas/canvas.uvue b/pages/component/canvas/canvas.uvue index b67035674fbe9d427cd757f2f7ea896f9ae87a3f..80987aece85c5e292636292c122a7a05b2e883b6 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() {