From 76152363430885377d2af3dd6dfaa46afd8730b6 Mon Sep 17 00:00:00 2001 From: shijing Date: Sat, 7 May 2022 15:18:35 +0800 Subject: [PATCH] 0507 --- hb_client/src/components/customForm/index.vue | 1 + 1 file changed, 1 insertion(+) 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';