posva / unplugin-vue-router

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

feature request: define dynamic params by folder name #363

Closed xiangnanscu closed 3 months ago

xiangnanscu commented 3 months ago

/users/:id

src/pages/
├── index.vue
├── about.vue
└── users/
    ├── index.vue
    └── [id].vue

to /:modelName/:id

src/pages/
├── index.vue
├── about.vue
└── [modelName]/
    ├── index.vue
    └── [id].vue
xiangnanscu commented 3 months ago

reason: I'm writing a database admin page, the model name is dynamic

posva commented 3 months ago

This is already possible