fix: type Component is not assignable to RouteMeta (#4140)

* fix: type `Component` is not assignable to `RouteMeta`

* fix: ci fail
This commit is contained in:
Li Kui
2024-08-13 21:30:14 +08:00
committed by GitHub
parent 738bc456c8
commit 1a4d61cc17
6 changed files with 11 additions and 28 deletions

View File

@@ -30,11 +30,7 @@ const breadcrumbs = computed((): IBreadcrumb[] => {
const resultBreadcrumb: IBreadcrumb[] = [];
for (const match of matched) {
const {
meta,
path,
// children = []
} = match;
const { meta, path } = match;
const { hideChildrenInMenu, hideInBreadcrumb, icon, name, title } =
meta || {};
if (hideInBreadcrumb || hideChildrenInMenu || !path) {
@@ -45,13 +41,6 @@ const breadcrumbs = computed((): IBreadcrumb[] => {
icon,
path: path || route.path,
title: title ? $t((title || name) as string) : '',
// items: children.map((child) => {
// return {
// icon: child?.meta?.icon as string,
// path: child.path,
// title: child?.meta?.title as string,
// };
// }),
});
}
if (props.showHome) {