How to use async data in metaInfo?
vue-meta
will do this for you automatically when your component state changes.
Just make sure that you're using the function form of metaInfo
:
{
data () {
return {
title: 'Foo Bar Baz'
}
},
metaInfo () {
return {
title: this.title
}
}
}
Check out the vuex-async example for a more detailed demonstration
当前内容版权归 nuxtjs.org 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 nuxtjs.org .