From f045d477db2b0b24cf4f54b070c93137eb4a6222 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Sun, 26 Apr 2020 17:09:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20assert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/tree/ztree/treetrender.page.service.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base/tree/ztree/treetrender.page.service.js b/src/base/tree/ztree/treetrender.page.service.js index 628c7ba44..e1d7edb81 100644 --- a/src/base/tree/ztree/treetrender.page.service.js +++ b/src/base/tree/ztree/treetrender.page.service.js @@ -56,8 +56,8 @@ }, removeNodeList: function (tId) { - this.nodeLists[tId].loadWidget.destroy(); - this.nodeLists[tId].loadWidget = null; + this.nodeLists[tId] && this.nodeLists[tId].loadWidget.destroy(); + this.nodeLists[tId] && (this.nodeLists[tId].loadWidget = null); delete this.nodeLists[tId]; if (BI.size(this.nodeLists) === 0) { this.clear();