fix: Typecheck and loop dependency problem repair
This commit is contained in:
@@ -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?.();
|
||||
|
Reference in New Issue
Block a user