mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-17 06:01:34 +00:00
Add meta tags to example
This commit is contained in:
parent
8563c0f05f
commit
16bd80a095
@ -14,5 +14,15 @@ module.exports = {
|
|||||||
{ id: 5, name: 'Kevin Durant', number: 35 },
|
{ id: 5, name: 'Kevin Durant', number: 35 },
|
||||||
{ id: 6, name: 'Kyrie Irving', number: 2 }
|
{ id: 6, name: 'Kyrie Irving', number: 2 }
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
generate: {
|
||||||
|
routes: [
|
||||||
|
'/1',
|
||||||
|
'/2',
|
||||||
|
'/3',
|
||||||
|
'/4',
|
||||||
|
'/5',
|
||||||
|
'/6'
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nuxt",
|
"dev": "nuxt",
|
||||||
"build": "nuxt build",
|
"build": "nuxt build",
|
||||||
"start": "nuxt start"
|
"start": "nuxt start",
|
||||||
|
"generate": "nuxt generate"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,11 @@ export default {
|
|||||||
return error({ message: 'User not found', statusCode: 404 })
|
return error({ message: 'User not found', statusCode: 404 })
|
||||||
}
|
}
|
||||||
return user
|
return user
|
||||||
|
},
|
||||||
|
head () {
|
||||||
|
return {
|
||||||
|
title: this.name
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -2,6 +2,14 @@
|
|||||||
<h2>Please select an user.</h2>
|
<h2>Please select an user.</h2>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
head: {
|
||||||
|
title: 'Please select an user'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
h2 {
|
h2 {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
Loading…
Reference in New Issue
Block a user