From d4a11cb83014569727a078bfbbac845e0a9a2c9d Mon Sep 17 00:00:00 2001 From: hdx Date: Wed, 20 Nov 2024 19:14:28 +0800 Subject: [PATCH] =?UTF-8?q?fix(canvas):=20image.src=20=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= 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 1db68b6a..600f2095 100644 --- a/pages/component/canvas/canvas.uvue +++ b/pages/component/canvas/canvas.uvue @@ -128,7 +128,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