diff --git a/src/layout/header/components/breadcrumb/index.vue b/src/layout/header/components/breadcrumb/index.vue index abcccbe39..4aef0b4df 100644 --- a/src/layout/header/components/breadcrumb/index.vue +++ b/src/layout/header/components/breadcrumb/index.vue @@ -13,13 +13,15 @@ // 点击菜单 const clickMenuItem = (menuItem: RouteRecordRaw) => { - if (!menuItem.redirect) return; + const { isExt, extOpenMode, type } = menuItem?.meta || {}; + + if (type === 0 && !menuItem.redirect) return; - const { isExt, extOpenMode } = menuItem?.meta || {}; if (isExt && extOpenMode === 1) { window.open(menuItem.path); } else { - router.push({ name: menuItem.name }); + const to = typeof menuItem.redirect === 'string' ? menuItem.redirect : menuItem; + router.push(to); } };