列车找不到所在设备时删除列车
This commit is contained in:
parent
cc45d794e9
commit
31c520359c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user