fix: lint

This commit is contained in:
xingyu4j
2026-03-13 20:58:07 +08:00
parent a850d426ef
commit de0181e0d9
6 changed files with 18 additions and 10 deletions

View File

@@ -182,7 +182,10 @@ function mergeRoutesByName(
isString(route.name) &&
routeMap.has(route.name as string)
) {
const existing = routeMap.get(route.name as string)!;
const existing = routeMap.get(route.name as string);
if (!existing) {
continue;
}
const existingChildren = existing.children ?? [];
const routeChildren = route.children ?? [];