fix:外链是子菜单时,路径不正确的问题,对应 https://t.zsxq.com/aE8AX 问题

This commit is contained in:
YunaiV
2026-01-18 14:46:56 +08:00
parent 4cc900f542
commit e5f5523bc6

View File

@@ -108,8 +108,8 @@ function convertServerMenuToRouteRecordStringComponent(
): RouteRecordStringComponent[] {
const menus: RouteRecordStringComponent[] = [];
menuList.forEach((menu) => {
// 处理顶级链接菜单
if (isHttpUrl(menu.path) && menu.parentId === 0) {
// 处理外链菜单(顶级或子级)
if (isHttpUrl(menu.path)) {
// add by 芋艿:如果有 ?_iframe 参数,则作为内嵌页面处理
// 如果有 _iframe 参数,则使用 iframeSrc如果没有则使用 link
const url = new URL(menu.path);