chore: sync main to site

This commit is contained in:
Uyarn 2024-01-10 17:43:50 +08:00
parent f122189e0e
commit 9cbb5765b6

View File

@ -103,7 +103,7 @@ export function transformObjectToRoute<T = RouteItem>(routeList: RouteItem[]): T
}
// eslint-disable-next-line no-unused-expressions
route.children && asyncImportRoute(route.children);
if (route.meta.icon) route.meta.icon = (await getMenuIcon(route.meta.icon)).value;
if (route.meta.icon) route.meta.icon = await getMenuIcon(route.meta.icon);
});
return [PAGE_NOT_FOUND_ROUTE, ...routeList] as unknown as T[];