From 678d03cd13ab2ba4d5af8c49ad5c499a20021b09 Mon Sep 17 00:00:00 2001 From: git Date: Thu, 17 Jun 2021 23:36:58 +0800 Subject: [PATCH] bugfix --- src/case/ztree/0.treeview.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/case/ztree/0.treeview.js b/src/case/ztree/0.treeview.js index cefd048c0..a54c8f162 100644 --- a/src/case/ztree/0.treeview.js +++ b/src/case/ztree/0.treeview.js @@ -338,16 +338,11 @@ BI.TreeView = BI.inherit(BI.Pane, { n.value = BI.isUndefined(n.value) ? n.text : n.value; if (n.text === null) { n.text = "(null)"; + } else if (BI.isUndefined(n.text)) { + n.text = n.value; } if (BI.isNull(n.title)) { - if (BI.isNotNull(n.text)) { - n.title = n.text; - } else { - n.title = n.value; - } - } - if (BI.isUndefined(n.text)) { - n.text = ""; + n.title = n.text; } // 处理标红 if (BI.isNotNull(n.text)) {