hannoeru / vite-plugin-pages

File system based route generator for ⚡️Vite
MIT License
1.84k stars 127 forks source link

Dynamic routing + dynamic tab + sub route #432

Closed nijeshw closed 1 year ago

nijeshw commented 1 year ago

Describe the bug

How to handle sub route after dynamic tab

http://localhost:5173/clients/view/1/pre-assessment --> http://localhost:5173/clients/view/[id]/[tab]

This above URL is working file, I would like to add sub route(list, add) after pre-assessment [tab] so my new URL should like http://localhost:5173/clients/view/1/pre-assessment/list http://localhost:5173/clients/view/1/pre-assessment/add The below is the file structure that I have followed now

image

can anyone help me to make this sub route.

Thanks

Reproduction

nill

System Info

I'm using vue 3.2.47 and vite-plugin-pages 0.29.0

Used Package Manager

yarn

Validations