diff --git a/hb_client/src/components/customForm/index.vue b/hb_client/src/components/customForm/index.vue index dfa8dd6..535e668 100644 --- a/hb_client/src/components/customForm/index.vue +++ b/hb_client/src/components/customForm/index.vue @@ -435,6 +435,7 @@ //画布添加背景模板图 draw(){ let canvasImg = document.getElementById("canvasImg"); + canvasImg.src = encodeURI(this.img); canvasImg.setAttribute("crossOrigin",'anonymous'); canvasImg.style.width = '500px'; canvasImg.style.height = '300px';