|
@@ -10,11 +10,11 @@ export function listToTree(lists: getMenuListResultModel): getMenuListResultMode |
|
@@ -10,11 +10,11 @@ export function listToTree(lists: getMenuListResultModel): getMenuListResultMode |
10
|
|
10
|
|
11
|
// console.log(goods.children?.length);
|
11
|
// console.log(goods.children?.length);
|
12
|
if (goods.children?.length) {
|
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
|
return lists;
|
19
|
return lists;
|
20
|
} |
20
|
} |