fix: 修复顶级外链菜单处理逻辑

pull/53/head
chenminjie 2024-11-29 01:04:09 +08:00
parent 91d720f6a5
commit 462b434973
1 changed files with 5 additions and 16 deletions

View File

@ -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;