提交 b5896ef7 编写于 作者: H hdx

canvas: drawImage 调整为绝对路径

上级 6ca01781
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册