diff --git a/src/jmapNew/shape/Section/index.js b/src/jmapNew/shape/Section/index.js index dad44c3c4..b834a7b97 100644 --- a/src/jmapNew/shape/Section/index.js +++ b/src/jmapNew/shape/Section/index.js @@ -259,7 +259,7 @@ export default class Section extends Group { setSpeedUpperLimit(speedUpLimit) { if (this.style.Section.line.speedLimitColor) { // 宁波三号线 独有 this.line.setStyle({stroke: this.style.Section.line.speedLimitColor}); - } else if (this.style.Section.speedLimitName.nameAlone && this.model.type == '03') { // 南京2,道岔区段只显示一个名称 + } else if (this.style.Section.speedLimitName && this.style.Section.speedLimitName.nameAlone && this.model.type == '03') { // 南京2,道岔区段只显示一个名称 const switchModel = Vue.prototype.$jlmap.mapDevice[this.model.relSwitchCode]; if (switchModel && switchModel.sectionACode == this._code) { this.speedLimit && this.speedLimit.show();