diff --git a/pages/component/canvas/canvas-context.uvue b/pages/component/canvas/canvas-context.uvue index 8282f49b77be4c9d71c5d5d1af550297318e24a2..ec7c4a7e39905173c5c30b39f856c1f64fed7d17 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) }