From 16d5a2a6ce616eabb596540b8ce99e1228bb456f Mon Sep 17 00:00:00 2001 From: hdx Date: Tue, 3 Dec 2024 19:17:41 +0800 Subject: [PATCH] =?UTF-8?q?canvas-context:=20drawImage=20=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E4=B8=BA=E7=BB=9D=E5=AF=B9=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/canvas/canvas-context.uvue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/component/canvas/canvas-context.uvue b/pages/component/canvas/canvas-context.uvue index 8282f49b..ec7c4a7e 100644 --- a/pages/component/canvas/canvas-context.uvue +++ b/pages/component/canvas/canvas-context.uvue @@ -372,7 +372,7 @@ const context = this.renderingContext! const image = this.canvasContext!.createImage() - image.src = '../../../static/api.png'; + image.src = '/static/api.png'; image.onload = () => { context.save() this.clearCanvasRect() @@ -603,7 +603,7 @@ drawImageLocal() { const context = this.renderingContext! const image = this.canvasContext!.createImage(); - image.src = '../../../static/uni.png' + image.src = '/static/uni.png' image.onload = () => { context.drawImage(image, 0, 0, 100, 100) } -- GitLab