diff --git a/pages/app/_slug.vue b/pages/app/_slug.vue index d43b7b8..11974ac 100644 --- a/pages/app/_slug.vue +++ b/pages/app/_slug.vue @@ -32,13 +32,21 @@ export default { async asyncData ({ params: { slug } }) { return { - slug + slug, + app: appList.find(app => (app.slug === slug)) } }, - computed: { - app () { - // console.log('context', this.slug) - return appList.find(app => (app.slug === this.slug)) + head() { + return { + title: `Does ${this.app.name} work on Apple Silicon?`, + // meta: [ + // // hid is used as unique identifier. Do not use `vmid` for it as it will not work + // { + // hid: 'description', + // name: 'description', + // content: 'My custom description' + // } + // ] } } }