vite-plugin-vue-layouts
vite-plugin-vue-layouts copied to clipboard
How can I generate navigation breadcrumbs?
Dir tree:
src/pages
├── posts
│ └── list
│ ├── index.vue
│ └── new
│ └── index.vue
The currently generated routes is:
{path: '/posts'},
{path: '/posts/new'}
So when I am on the /posts/new
page, the $route.matched
doesn't includes /posts
route.
like this
For reference, this is a demo https://github.com/zhuhaobam/vtdd
This would be beyond the scope of this project.