yankeeinlondon / meta-builder

add super powers to vite-plugin-md's ability to manage <meta> properties
MIT License
1 stars 0 forks source link

`routeProps` doesn't work #1

Open Wakeful-Cloud opened 2 years ago

Wakeful-Cloud commented 2 years ago

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

Reproduction

https://stackblitz.com/edit/vitejs-vite-ccwb7f (Compare the meta value on the markdown and SFC pages)

Used Package Manager

npm

Validations

censujiang commented 2 years ago

I have same problem , plz fix this bug @yankeeinlondon