* [task#129160,done,2h] fix js error.

This commit is contained in:
tianshujie
2024-10-09 09:08:46 +08:00
committed by 刘刚
parent 2412fa0337
commit 5da16ee5a0
+4 -2
View File
@@ -1,7 +1,9 @@
window.initModuleTree = function()
{
$('#moduleTree').replaceWith('<ul id="moduleTree"></ul>');
$('#extendWin').attr('src', '')
data = appendClickEvent(moduleTree);
zui.create("tree", "#moduleTree", {items: data});
tree = new zui.Tree("#moduleTree", {items: data});
};
window.appendClickEvent = function(moduleTree)
@@ -26,4 +28,4 @@ window.openInExtend = function(event, node)
$this.closest('li.tree-item.has-nested-menu').addClass('active');
};
initModuleTree();
window.waitDom('#moduleTree', initModuleTree);