From c341aad9e1cb4f0623fba594b8c6e03f56518743 Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Wed, 19 Jul 2023 11:26:08 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=E5=9C=A8=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E9=A2=84=E8=AD=A6checkbox=E9=80=89=E6=8B=A9=E6=A1=86=E6=97=B6?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E5=9B=BE=E7=89=87=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../get-out-of-line-details.component.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/app/pages/get-out-of-line-details/get-out-of-line-details.component.ts b/src/app/pages/get-out-of-line-details/get-out-of-line-details.component.ts index affb1d1..720bcc0 100644 --- a/src/app/pages/get-out-of-line-details/get-out-of-line-details.component.ts +++ b/src/app/pages/get-out-of-line-details/get-out-of-line-details.component.ts @@ -217,7 +217,14 @@ export class GetOutOfLineDetailsComponent implements OnInit { (v) => v.id !== item.id ); } + this.ctx.clearRect(0, 0, this.canvasWidth, this.canvasHeight); + let imgBg: any = document.getElementById("img"); + const img = new Image(); + img.src = imgBg.src; + const canvas: any = document.querySelector("#canvas"); + this.ctx.drawImage(img, 0, 0, canvas.width, canvas.height); + this.strokeRect(this.currentCoordinate); }