|
@@ -17,6 +17,9 @@ const formatRouter = (list) => {
|
|
|
p.children = [];
|
|
p.children = [];
|
|
|
authorities.push(p);
|
|
authorities.push(p);
|
|
|
} else {
|
|
} else {
|
|
|
|
|
+ if (p.source === 2 && p.extend) {
|
|
|
|
|
+ p.path = p.path + '/' + p.extend;
|
|
|
|
|
+ }
|
|
|
if (p.children?.length) {
|
|
if (p.children?.length) {
|
|
|
p.children = fn(p.children);
|
|
p.children = fn(p.children);
|
|
|
} else {
|
|
} else {
|
|
@@ -122,8 +125,8 @@ export default {
|
|
|
if (!list.length) {
|
|
if (!list.length) {
|
|
|
return {};
|
|
return {};
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
const { menuList, authorities } = formatRouter(list[0].children);
|
|
const { menuList, authorities } = formatRouter(list[0].children);
|
|
|
|
|
+ console.log('menuList', menuList);
|
|
|
|
|
|
|
|
// 用户权限
|
|
// 用户权限
|
|
|
// const authorities =
|
|
// const authorities =
|
|
@@ -144,6 +147,7 @@ export default {
|
|
|
parentIdField: 'parentId'
|
|
parentIdField: 'parentId'
|
|
|
})
|
|
})
|
|
|
);
|
|
);
|
|
|
|
|
+ console.log(menus, 'mens')
|
|
|
// 用户路由按钮
|
|
// 用户路由按钮
|
|
|
const { menus: authoritiesRouter } = formatMenus(
|
|
const { menus: authoritiesRouter } = formatMenus(
|
|
|
USER_MENUS ??
|
|
USER_MENUS ??
|