posva / unplugin-vue-router

Next Generation file based typed routing for Vue Router
https://uvr.esm.is
MIT License
1.62k stars 79 forks source link

How to add set parent route's meta? #388

Closed carrypann closed 4 months ago

carrypann commented 4 months ago

Consider the following folder structure:

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

will generate the following routes:

const routes = [
  {
    path: '/users',
    // how to set meta here?
    children: [
      { path: '', component: () => import('src/pages/users/index.vue') },
    ],
  },
]

Is there any way to set parent route /users meta info?

posva commented 4 months ago

Duplicate of #33