diff --git a/src/jmapNew/shape/Train/index.js b/src/jmapNew/shape/Train/index.js index 71f8e42ee..82d26edd4 100644 --- a/src/jmapNew/shape/Train/index.js +++ b/src/jmapNew/shape/Train/index.js @@ -274,8 +274,12 @@ export default class Train extends Group { // 设置车门状态类型 setDoorStatus(status) { - if (status) { - this.trainB && this.trainB.setDShow(true); + if (status != undefined) { + if (status) { + this.trainB && this.trainB.setDShow(false); + } else { + this.trainB && this.trainB.setDShow(true); + } } else { this.trainB && this.trainB.setDShow(false); }