调整地图绘制流程

This commit is contained in:
zyy 2020-10-29 18:33:35 +08:00
parent 0abb974a95
commit 860b00e9b3
2 changed files with 3 additions and 3 deletions

View File

@ -2,11 +2,11 @@ export function getBaseUrl() {
let BASE_API; let BASE_API;
if (process.env.NODE_ENV === 'development') { if (process.env.NODE_ENV === 'development') {
// BASE_API = 'https://joylink.club/jlcloud'; // 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.8.107:9000'; // 袁琪 // BASE_API = 'http://192.168.8.107:9000'; // 袁琪
// BASE_API = 'http://192.168.8.144:9000'; // 旭强 // BASE_API = 'http://192.168.8.144:9000'; // 旭强
// BASE_API = 'http://192.168.3.175:9000'; // 张赛 // BASE_API = 'http://192.168.3.175:9000'; // 张赛
BASE_API = 'http://192.168.8.110:9000'; // 杜康 // BASE_API = 'http://192.168.8.110:9000'; // 杜康
// BASE_API = 'http://b29z135112.zicp.vip'; // BASE_API = 'http://b29z135112.zicp.vip';
// BASE_API = 'http://2925963m2a.zicp.vip'; // 杜康 // BASE_API = 'http://2925963m2a.zicp.vip'; // 杜康
// BASE_API = 'http://2i38984j47.qicp.vip'; // 张赛 // BASE_API = 'http://2i38984j47.qicp.vip'; // 张赛

View File

@ -418,7 +418,7 @@ export default {
map.stationStandList.forEach(stationStand => { map.stationStandList.forEach(stationStand => {
const section = this.$store.getters['map/getDeviceByCode'](stationStand.standTrackCode); const section = this.$store.getters['map/getDeviceByCode'](stationStand.standTrackCode);
const list = []; const list = [];
section.points.forEach(point => { section && section.points.forEach(point => {
list.push(point.x); list.push(point.x);
}); });
if (stationStand.position.x > Math.max(...list) || stationStand.position.x < Math.min(...list)) { if (stationStand.position.x > Math.max(...list) || stationStand.position.x < Math.min(...list)) {