Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

routeProps doesn't work #1

Open
2 tasks done
Wakeful-Cloud opened this issue Jul 28, 2022 · 1 comment
Open
2 tasks done

routeProps doesn't work #1

Wakeful-Cloud opened this issue Jul 28, 2022 · 1 comment

Comments

@Wakeful-Cloud
Copy link

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

  • Read the docs.
  • Make sure this plugin specific issue with this builder and not the core vite-plugin-md repo.
@censujiang
Copy link

I have same problem , plz fix this bug @yankeeinlondon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants