fix: Typecheck and loop dependency problem repair

This commit is contained in:
vince
2024-07-05 11:12:38 +08:00
parent fa781633b5
commit 527023ae51
21 changed files with 462 additions and 750 deletions

View File

@@ -15,7 +15,7 @@ import { mapTree } from '@vben-core/toolkit';
async function generateRoutesByBackend(
options: GeneratorMenuAndRoutesOptions,
): Promise<RouteRecordRaw[]> {
const { fetchMenuListAsync, layoutMap, pageMap } = options;
const { fetchMenuListAsync, layoutMap = {}, pageMap = {} } = options;
try {
const menuRoutes = await fetchMenuListAsync?.();