Showing
2 changed files
with
5 additions
and
5 deletions
... | ... | @@ -10,11 +10,11 @@ export function listToTree(lists: getMenuListResultModel): getMenuListResultMode |
10 | 10 | |
11 | 11 | // console.log(goods.children?.length); |
12 | 12 | if (goods.children?.length) { |
13 | - goods.children.forEach((goodChildren) => { | |
14 | - goodChildren['menuName'] = t(goodChildren.meta.title); // 为goodChildren添加属性menuName | |
15 | - }); | |
13 | + listToTree(goods.children); | |
14 | + // goods.children.forEach((goodChildren) => { | |
15 | + // goodChildren['menuName'] = t(goodChildren.meta.title); // 为goodChildren添加属性menuName | |
16 | + // }); | |
16 | 17 | } |
17 | 18 | }); |
18 | - | |
19 | 19 | return lists; |
20 | 20 | } | ... | ... |