vue-meta icon indicating copy to clipboard operation
vue-meta copied to clipboard

Vue3 + vue-router + vue-meta

Open fontcoderrrrrrr opened this issue 2 years ago • 0 comments

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.

fontcoderrrrrrr avatar Oct 21 '22 07:10 fontcoderrrrrrr