mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Set page title fopr app pages
This commit is contained in:
parent
73096787ac
commit
99739f52db
1 changed files with 13 additions and 5 deletions
|
|
@ -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'
|
||||
// }
|
||||
// ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue