提交 d4a11cb8 编写于 作者: H hdx

fix(canvas): image.src 路径错误的问题

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