视图修改、接口修改

This commit is contained in:
2025-10-28 19:04:35 +08:00
parent 98c73632bd
commit c5c134fbb3
96 changed files with 7122 additions and 4194 deletions

View File

@@ -3,7 +3,6 @@ import { RouteRecordRaw, RouteLocationNormalized } from 'vue-router';
export function getParentChildrenRoutes(route: RouteLocationNormalized): RouteRecordRaw[] {
// 判断是否有父节点至少需要2个匹配的路由
if (route.matched.length < 2) {
console.log('没有父节点route.matched 长度不足');
return [];
}
@@ -12,7 +11,6 @@ export function getParentChildrenRoutes(route: RouteLocationNormalized): RouteRe
// 检查父路由是否有子路由
if (!parentRoute?.children || parentRoute.children.length === 0) {
console.log('父路由没有子路由');
return [];
}