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

Vue3 + vue-router + vue-meta #785

Open
fontcoderrrrrrr opened this issue Oct 21, 2022 · 0 comments
Open

Vue3 + vue-router + vue-meta #785

fontcoderrrrrrr opened this issue Oct 21, 2022 · 0 comments

Comments

@fontcoderrrrrrr
Copy link

Hi,everyone
I have a question that I want to combine meta with router in vue3;
But I couldn't find the API;

router.beforeEach((to, from, next) => {
  if (to.meta.metaInfo) {
    store.CAHNGE_META_INFO(to.meta.metaInfo.title);
    useMeta({
      title: to.meta.metaInfo.title,
    });
  }
  next();
});

The above code is not available.
I was wondering when to insert meta information from the router into vue-meta.

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

1 participant