ztree 异步打开的时候,如果初始没有给数据,避免无条件查询一次。
This commit is contained in:
@@ -1640,7 +1640,7 @@
|
|||||||
if (root[childKey] && root[childKey].length > 0) {
|
if (root[childKey] && root[childKey].length > 0) {
|
||||||
view.createNodes(setting, 0, root[childKey]);
|
view.createNodes(setting, 0, root[childKey]);
|
||||||
} else if (setting.async.enable && setting.async.url && setting.async.url !== '') {
|
} else if (setting.async.enable && setting.async.url && setting.async.url !== '') {
|
||||||
view.asyncNode(setting);
|
// view.asyncNode(setting);
|
||||||
}
|
}
|
||||||
return zTreeTools;
|
return zTreeTools;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user