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