diff --git a/pages/component/canvas/canvas.uvue b/pages/component/canvas/canvas.uvue index 6b4defa2a2bd214ef74e3e751c01755928d0d1fe..bc556faadeb0b693b2b24597f771a3f268ceb882 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);