fix: 修复顶级外链菜单处理逻辑
parent
91d720f6a5
commit
462b434973
|
|
@ -14,27 +14,16 @@ function buildMenus(
|
||||||
// 处理顶级链接菜单
|
// 处理顶级链接菜单
|
||||||
if (isHttpUrl(menu.path) && menu.parentId === 0) {
|
if (isHttpUrl(menu.path) && menu.parentId === 0) {
|
||||||
const urlMenu: RouteRecordStringComponent = {
|
const urlMenu: RouteRecordStringComponent = {
|
||||||
component: 'BasicLayout',
|
component: 'IFrameView',
|
||||||
meta: {
|
meta: {
|
||||||
|
hideInMenu: !menu.visible,
|
||||||
icon: menu.icon,
|
icon: menu.icon,
|
||||||
|
link: menu.path,
|
||||||
|
orderNo: menu.sort,
|
||||||
title: menu.name,
|
title: menu.name,
|
||||||
},
|
},
|
||||||
name: menu.name,
|
name: menu.name,
|
||||||
path: `/${menu.path}`,
|
path: `/${menu.path}/index`,
|
||||||
children: [
|
|
||||||
{
|
|
||||||
component: 'IFrameView',
|
|
||||||
meta: {
|
|
||||||
hideInMenu: !menu.visible,
|
|
||||||
icon: menu.icon,
|
|
||||||
link: menu.path,
|
|
||||||
orderNo: menu.sort,
|
|
||||||
title: menu.name,
|
|
||||||
},
|
|
||||||
name: menu.name,
|
|
||||||
path: `/${menu.path}/index`,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
};
|
};
|
||||||
menus.push(urlMenu);
|
menus.push(urlMenu);
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue