From 082b5d70b12df1004b1bf4348add38e64f3ce68a Mon Sep 17 00:00:00 2001 From: Ricky Date: Thu, 31 Dec 2020 11:30:19 +0800 Subject: [PATCH] =?UTF-8?q?tree=E6=A0=B9=E6=8D=AEId=E5=92=8CName=E9=80=89?= =?UTF-8?q?=E4=B8=AD=E6=8C=87=E5=AE=9A=E8=8A=82=E7=82=B9=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E7=A9=BA=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js b/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js index 1b2a58931..5df9bc719 100644 --- a/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js +++ b/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js @@ -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); } },