Open Wakeful-Cloud opened 2 years ago
Trying to use frontmatter to pass arbitrary data to Vue Router via the routeProps option.
routeProps
That the frontmatter data is retrievable using $route.meta.
$route.meta
The metadata is empty.
vue
3.2.37
vue-router
4.1.3
vite
3.0.3
@vitejs/plugin-vue
3.0.1
vite-plugin-pages
0.25.0
vite-plugin-vue-layouts
0.7.0
vite-plugin-md
0.20.0
@yankeeinlondon/meta-builder
1.0.5
https://stackblitz.com/edit/vitejs-vite-ccwb7f (Compare the meta value on the markdown and SFC pages)
npm
I have same problem , plz fix this bug @yankeeinlondon
Describe the bug
What I am doing
Trying to use frontmatter to pass arbitrary data to Vue Router via the
routeProps
option.What I expect
That the frontmatter data is retrievable using
$route.meta
.What is actually happening
The metadata is empty.
Versions
vue
:3.2.37
vue-router
:4.1.3
vite
:3.0.3
@vitejs/plugin-vue
:3.0.1
vite-plugin-pages
:0.25.0
vite-plugin-vue-layouts
:0.7.0
vite-plugin-md
:0.20.0
@yankeeinlondon/meta-builder
:1.0.5
Reproduction
https://stackblitz.com/edit/vitejs-vite-ccwb7f (Compare the meta value on the markdown and SFC pages)
Used Package Manager
npm
Validations
vite-plugin-md
repo.