Unverified Commit fa0bd85f authored by 老广's avatar 老广 Committed by GitHub

Merge pull request #1667 from jumpserver/dev

[Bugfix] 修复点击资产报错
parents 4f532f58 e41aad15
......@@ -194,9 +194,10 @@ function addTreeNode() {
$.post(url, {}, function (data, status){
if (status === "success") {
var newNode = {
id: data["key"],
name: data["value"],
id: data["id"],
pId: parentNode.node_id
node_id: data["id"],
pId: parentNode.id
};
newNode.checked = zTree.getSelectedNodes()[0].checked;
zTree.addNodes(parentNode, 0, newNode);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment