vue-meta
vue-meta copied to clipboard
Vue3 + vue-router + vue-meta
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.