diff --git a/src/components/Menu/src/index.less b/src/components/Menu/src/index.less index e6fcec7c75898492129e3a5fce31a30a491df3ef..74fce6c21e4da4ca417f2e80e5acfed3152a991b 100644 --- a/src/components/Menu/src/index.less +++ b/src/components/Menu/src/index.less @@ -248,14 +248,14 @@ } &.ant-menu-inline-collapsed { - .ant-menu-submenu-selected, .ant-menu-item-selected { - .active-style(); + background: unset !important; + box-shadow: none; } + .ant-menu-submenu-selected, .ant-menu-item-selected { - background: unset !important; - box-shadow: none; + .active-style(); } } } diff --git a/src/layouts/default/LayoutBreadcrumb.tsx b/src/layouts/default/LayoutBreadcrumb.tsx index 3655eedcc0b10cc717b8b5859c6402faf35280d1..06a1653ce3e01ca0c5daee81f27afd59717760ab 100644 --- a/src/layouts/default/LayoutBreadcrumb.tsx +++ b/src/layouts/default/LayoutBreadcrumb.tsx @@ -46,11 +46,13 @@ export default defineComponent({ if (homeRoute.name === firstItem.name) return false; return homeRoute; } + function pathCompile(path: string) { const { params } = unref(currentRoute); const toPath = compile(path); return toPath(params); } + function handleItemClick(item: AppRouteRecordRaw) { const { redirect, path, meta } = item; if (meta.disabledRedirect) return; @@ -71,37 +73,33 @@ export default defineComponent({ ); return () => ( - <> - - {() => ( - <> - - {() => { - return unref(itemList).map((item) => { - const isLink = !!item.redirect && !item.meta.disabledRedirect; - return ( - - {() => ( - <> - {props.showIcon && item.meta.icon && item.meta.icon.trim() !== '' && ( - - )} - {item.meta.title} - + + {() => ( + + {() => { + return unref(itemList).map((item) => { + const isLink = !!item.redirect && !item.meta.disabledRedirect; + return ( + + {() => ( + <> + {props.showIcon && item.meta.icon && item.meta.icon.trim() !== '' && ( + )} - - ); - }); - }} - - - )} - - + {item.meta.title} + + )} + + ); + }); + }} + + )} + ); }, });