优化backend产品和解决方案
This commit is contained in:
1 parent
735534c6e6
commit
a4f7a97763
14 files changed
+201
-67
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user