diff --git a/src/jmapNew/shape/Switch/index.js b/src/jmapNew/shape/Switch/index.js index 68a4ee87d..d84679131 100644 --- a/src/jmapNew/shape/Switch/index.js +++ b/src/jmapNew/shape/Switch/index.js @@ -401,8 +401,13 @@ export default class Switch extends Group { } setState(model) { - model.normalPosition && this.setLocationAction(model); /** 定位*/ - model.reversePosition && this.setInversionAction(model); /** 反位*/ + if (model.normalPosition) { + this.setLocationAction(model); /** 定位*/ + } else if (model.reversePosition) { + this.setInversionAction(model); /** 反位*/ + } else { + this.setLossAction(true); + } /** 道岔单锁 */ model.singleLock && this.setMonolock(); /** 道岔锁闭 */