Explorar el Código

tree根据Id和Name选中指定节点增加空判断

Ricky hace 4 años
padre
commit
082b5d70b1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js

+ 1 - 1
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);
         		}
             },