调整加载线路字段

This commit is contained in:
zyy 2020-05-15 10:34:15 +08:00
parent fab4e149c8
commit cb47cd612d

View File

@ -49,7 +49,7 @@ export function parser(data, skinCode, showConfig) {
zrUtil.each(data.sectionList || [], elem => {
if (elem.type == '02' || elem.type == '03') {
mapDevice[elem.code].parentName = mapDevice[mapDevice[elem.code].parentCode].name;
mapDevice[elem.code].parentName = mapDevice[elem.parentCode] ? mapDevice[elem.parentCode].name : '';
}
}, this);