提交 5cff73bc 编写于 作者: V vben

fix: fix the problem of collapsed display when the menu has no child nodes

上级 88de82c4
......@@ -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();
}
}
}
......
......@@ -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,10 +73,8 @@ export default defineComponent({
);
return () => (
<>
<Breadcrumb class="layout-breadcrumb">
{() => (
<>
<TransitionGroup name="breadcrumb">
{() => {
return unref(itemList).map((item) => {
......@@ -98,10 +98,8 @@ export default defineComponent({
});
}}
</TransitionGroup>
</>
)}
</Breadcrumb>
</>
);
},
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册