From 2d063eb6a144d6e639de3cdb892ab35710573e2f Mon Sep 17 00:00:00 2001 From: Claire <1119518763@qq.com> Date: Fri, 4 Nov 2022 14:21:41 +0800 Subject: [PATCH] =?UTF-8?q?BI-115904=20fix:=20=E3=80=90=E6=9D=A5=E6=BA=90?= =?UTF-8?q?=E5=86=85=E6=B5=8BBUG=E3=80=91=E5=B1=95=E5=BC=80=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=E6=A0=91=E5=AD=90=E8=8A=82=E7=82=B9=EF=BC=8C=E4=BC=9A?= =?UTF-8?q?=E5=87=BA=E7=8E=B0=E9=87=8D=E5=A4=8D=E6=95=B0=E6=8D=AE=20?= =?UTF-8?q?=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/case/ztree/1.asynctree.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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,