diff --git a/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-treetable/bootstrap-treetable.js b/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-treetable/bootstrap-treetable.js index 35e96331b..5f526c53d 100644 --- a/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-treetable/bootstrap-treetable.js +++ b/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-treetable/bootstrap-treetable.js @@ -239,11 +239,11 @@ item.isShow = false; // 这里兼容几种常见Root节点写法 // 默认的几种判断 - var firstCode = (0 == index ? item[options.parentCode] : '-'); + // var firstCode = (0 == index ? item[options.parentCode] : '-'); var _defaultRootFlag = item[options.parentCode] == '0' || item[options.parentCode] == 0 || item[options.parentCode] == null || - item[options.parentCode] == firstCode || + // item[options.parentCode] == firstCode || item[options.parentCode] == ''; if (!item[options.parentCode] || (_root ? (item[options.parentCode] == options.rootIdValue) : _defaultRootFlag)) { if (!target.data_list["_root_"]) {