From b5896ef79b6b6e752eb4080ab90295fd2a2285ee Mon Sep 17 00:00:00 2001 From: hdx Date: Tue, 3 Dec 2024 19:11:21 +0800 Subject: [PATCH] =?UTF-8?q?canvas:=20drawImage=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=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.uvue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/component/canvas/canvas.uvue b/pages/component/canvas/canvas.uvue index 6b4defa2..bc556faa 100644 --- a/pages/component/canvas/canvas.uvue +++ b/pages/component/canvas/canvas.uvue @@ -136,7 +136,7 @@ onCreateImage() { this.renderingContext!.clearRect(0, 0, this.canvasWidth, this.canvasHeight) let image = this.canvasContext!.createImage(); - image.src = "../../../static/logo.png" + image.src = "/static/logo.png" image.onload = () => { this.testCreateImage = true this.renderingContext?.drawImage(image, 0, 0, 100, 100); -- GitLab