mirror of https://gitee.com/y_project/RuoYi.git
tree根据Id和Name选中指定节点增加空判断
parent
3faa23b7c0
commit
082b5d70b1
|
@ -1345,7 +1345,7 @@ var table = {
|
|||
},
|
||||
// 根据Id和Name选中指定节点
|
||||
selectByIdName: function(treeId, node) {
|
||||
if ($.common.isNotEmpty(treeId) && treeId == node.id) {
|
||||
if ($.common.isNotEmpty(treeId) && node && treeId == node.id) {
|
||||
$._tree.selectNode(node, true);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue