前端:管理员模块重构初步完成
This commit is contained in:
@@ -6,7 +6,8 @@ export function buildTreeNode(nodes, titleKey, nodeKey) {
|
||||
if (item.children) {
|
||||
res.children = buildTreeNode(item.children, titleKey, nodeKey);
|
||||
}
|
||||
res.title = `${item.id}-${item[titleKey]}`;
|
||||
// res.title = `${item.id}-${item[titleKey]}`;
|
||||
res.title = `${item[titleKey]}`;
|
||||
res.key = item[nodeKey];
|
||||
return res;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user