道岔转动调整

This commit is contained in:
joylink_fanyuhong 2020-02-21 15:49:30 +08:00
parent 181997bfb8
commit a33a9bbe42
2 changed files with 9 additions and 4 deletions

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

View File

@ -3,12 +3,12 @@ export function getBaseUrl() {
let BASE_API;
if (process.env.NODE_ENV === 'development') {
// BASE_API = 'https://joylink.club/jlcloud';
// BASE_API = 'https://test.joylink.club/jlcloud';
BASE_API = 'https://test.joylink.club/jlcloud';
// BASE_API = 'http://192.168.3.5:9000'; // 袁琪
// BASE_API = 'http://192.168.3.6:9000'; // 旭强
// BASE_API = 'http://192.168.3.41:9000'; // 张赛
// BASE_API = 'http://192.168.3.82:9000'; // 杜康
BASE_API = 'http://b29z135112.zicp.vip';
// BASE_API = 'http://b29z135112.zicp.vip';
// BASE_API = 'http://2925963m2a.zicp.vip'; // 杜康
} else {
BASE_API = process.env.VUE_APP_BASE_API;