Skip to content
New issue

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

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

Already on GitHub? # 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

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

No branches or pull requests

2 participants