ztree 异步打开的时候,如果初始没有给数据,避免无条件查询一次。

This commit is contained in:
thinkgem
2020-04-30 15:58:40 +08:00
parent 4f1421c00c
commit 5fc2d8006f

View File

@@ -1640,7 +1640,7 @@
if (root[childKey] && root[childKey].length > 0) {
view.createNodes(setting, 0, root[childKey]);
} else if (setting.async.enable && setting.async.url && setting.async.url !== '') {
view.asyncNode(setting);
// view.asyncNode(setting);
}
return zTreeTools;
}