0👍
✅
You were searching for your meta information in the wrong place. The meta info of your nuxt page cannot be found on the $route
property (although this property has a different kind of meta itself).
What you are looking for is not this.$route.meta
, but rather this.$metaInfo.meta
:
export default {
mounted() {
console.log(this.$metaInfo.meta)
},
head() {
return {
meta: [{ hid: 'description', name: 'description', title: 'Tea Manage' }]
}
}
}
Source:stackexchange.com