From 31c520359c29e5d25e3a6aa7ff1f0d7a5cbaefad Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Thu, 24 Aug 2023 13:59:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=BD=A6=E6=89=BE=E4=B8=8D=E5=88=B0?= =?UTF-8?q?=E6=89=80=E5=9C=A8=E8=AE=BE=E5=A4=87=E6=97=B6=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E5=88=97=E8=BD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/graphics/train/Train.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/graphics/train/Train.ts b/src/graphics/train/Train.ts index 94eb1c3..454a8dc 100644 --- a/src/graphics/train/Train.ts +++ b/src/graphics/train/Train.ts @@ -419,6 +419,9 @@ export class Train extends JlGraphic { deviceTypeString.get(this.states.devType) ); if (!dev) { + // 移除列车 + const app = this.getGraphicApp(); + app.deleteGraphics(this); return; } let window = null;