列车找不到所在设备时删除列车

This commit is contained in:
dong 2023-08-24 13:59:10 +08:00
parent cc45d794e9
commit 31c520359c

View File

@ -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;