Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Third level of menu entries #147

Open
clabnet opened this issue Jun 30, 2022 · 1 comment
Open

Third level of menu entries #147

clabnet opened this issue Jun 30, 2022 · 1 comment
Labels
invalid This doesn't seem right

Comments

@clabnet
Copy link

clabnet commented Jun 30, 2022

Hi,
I would show a menu with three levels : Catalogs > Factory > Stand
I have this code :

const routeName = 'catalogs';

const routes: Array<RouteRecordRaw> = [
  {
    path: '',
    name: routeName,
    component: Layout,
    redirect: `${routeName}`,
    meta: {
      sort: 80,
    },
    children: [
      {
        path: 'catalogs',
        name: `${routeName}_catalog`,
        component: ParentLayout,
        meta: {
          title: 'Catalogs',
        },
        children: [{
          path: 'factory',
          name: `${routeName}_catalog_factory`,
          component: ParentLayout,
          meta: {
            title: 'Factory',
          },
          children: [{
            path: 'stand',
            name: `${routeName}_catalog_factory_stand`,
            component: IFrame,
            meta: {
              title: 'Stand',
              frameSrc: 'http://mysite.com',
            },
          }],
        }]
      }]
  },
];

On the top Breadcrumb I show correctly 3 levels : Catalogs / Factory / Stand,

But on the left side I can see only 2 menu entries : Catalogs and Stand.

Please can you show me where I wrong ?

I'm crazying with menu nesting levels. Thanks in advance,

@jekip
Copy link
Owner

jekip commented Jul 13, 2022

You can try alwaysShow set to false
This is because there is only one submenu at the last level of the menu, and the program automatically removes the hierarchy

@jekip jekip added the invalid This doesn't seem right label Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants