优化backend产品和解决方案

This commit is contained in:
hero920103 committed 2026-08-20 17:47:47 +08:00
1 parent 735534c6e6
commit a4f7a97763
14 files changed
+201 -67

No files matched your search

+7 -5
View File
@@ -160,11 +160,13 @@ export function convertMenusToRoutes(menus, parentPath = '') {
} else if (hasChildren) {
route.component = () => import('@/views/layouts/EmptyLayout.vue');
route.children = convertMenusToRoutes(menu.children, fullPath);
const firstChild = menu.children[0];
if (firstChild && firstChild.path) {
const childFullPath = firstChild.path.startsWith('/')
? firstChild.path
: `${fullPath}/${firstChild.path}`;
const defaultChild = menu.children.find((child) =>
child.path === '/apps/cms/analytics/content' || child.path === 'analytics/content'
) || menu.children[0];
if (defaultChild && defaultChild.path) {
const childFullPath = defaultChild.path.startsWith('/')
? defaultChild.path
: `${fullPath}/${defaultChild.path}`;
route.redirect = childFullPath;
}
} else {