This commit is contained in:
zyy 2020-02-24 11:32:46 +08:00
commit 5c1c40e8d2

View File

@ -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();
/** 道岔锁闭 */