diff --git a/package.json b/package.json index 44d6d6029..8d5f2830e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fineui", - "version": "2.0.20221104110628", + "version": "2.0.20221104135556", "description": "fineui", "main": "dist/fineui_without_conflict.min.js", "types": "dist/lib/index.d.ts", diff --git a/src/case/ztree/1.asynctree.js b/src/case/ztree/1.asynctree.js index dde174b5b..ef44f50d3 100644 --- a/src/case/ztree/1.asynctree.js +++ b/src/case/ztree/1.asynctree.js @@ -1,6 +1,6 @@ /** * guy - * 同步树 + * 异步树 * @class BI.AsyncTree * @extends BI.TreeView */ @@ -194,7 +194,8 @@ BI.AsyncTree = BI.inherit(BI.TreeView, { // 展开节点会将halfCheck置为false以开启自动计算半选, 所以第一次展开节点的时候需要在置为false之前获取配置 var checkState = treeNode.getCheckStatus(); - if (!treeNode.children) { + if (!treeNode.children && !treeNode.requested) { + treeNode.requested = true; setTimeout(function () { getNodes({ times: 1,