From cb47cd612d580d3715e3dc94e570052835fc5857 Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Fri, 15 May 2020 10:34:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=8A=A0=E8=BD=BD=E7=BA=BF?= =?UTF-8?q?=E8=B7=AF=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/utils/parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jmapNew/utils/parser.js b/src/jmapNew/utils/parser.js index 71a0067f4..e75dc26ed 100644 --- a/src/jmapNew/utils/parser.js +++ b/src/jmapNew/utils/parser.js @@ -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);