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

Empty file route should not generate layout #149

Open
A-kirami opened this issue Mar 9, 2024 · 1 comment
Open

Empty file route should not generate layout #149

A-kirami opened this issue Mar 9, 2024 · 1 comment

Comments

@A-kirami
Copy link

A-kirami commented Mar 9, 2024

Describe

When using nested routes, empty file route generate layouts.

const routes = [
  {
    path: '/users',
    component: {
	    "default": "src/layouts/default.vue"
	},
    children: [
      { path: '', component: () => import('src/pages/users/index.vue') },
    ],
  },
]

Reproduction

The page directory structure is as follows.

src/pages/
└── users/
    └── index.vue

Expected behavior

const routes = [
  {
    path: '/users',
    // there should be no layout components here
    children: [
      { path: '', component: () => import('src/pages/users/index.vue') },
    ],
  },
]
@zcqno1
Copy link

zcqno1 commented May 14, 2024

much like #144

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants