Commit 6aa50646 by zhaochengxiang

资产变更目录问题

parent 43a69b26
......@@ -311,15 +311,21 @@ const AssetManageTree = (props) => {
}
for (let i = 0; i < treeData.length; i++) {
const node = treeData[i];
const { nodeId } = node;
const groupItem = [nodeId];
if (node.children) {
generateGroupItem(node.children, groupItem);
const channelTreeData = treeData[i];
if (channelTreeData.children) {
for (let j =0; j < channelTreeData.children.length; j++) {
const node = channelTreeData.children[j];
const { nodeId } = node;
const groupItem = [nodeId];
if (node.children) {
generateGroupItem(node.children, groupItem);
}
list.push(groupItem);
}
}
list.push(groupItem);
}
};
......
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