diff --git a/examples/async-data/nuxt.config.js b/examples/async-data/nuxt.config.js index 9aba646513..9bd912b375 100644 --- a/examples/async-data/nuxt.config.js +++ b/examples/async-data/nuxt.config.js @@ -6,5 +6,13 @@ module.exports = { color: '#4FC08D', failedColor: '#bf5050', duration: 1500 + }, + head: { + title: 'Default title' + }, + generate: { + routes: [ + '/posts/1', + ] } } diff --git a/examples/async-data/pages/index.vue b/examples/async-data/pages/index.vue index 577d468358..ffe79c271f 100644 --- a/examples/async-data/pages/index.vue +++ b/examples/async-data/pages/index.vue @@ -10,7 +10,7 @@ diff --git a/examples/async-data/pages/posts/index.vue b/examples/async-data/pages/posts/index.vue index 4ff523521a..404c127478 100644 --- a/examples/async-data/pages/posts/index.vue +++ b/examples/async-data/pages/posts/index.vue @@ -21,6 +21,9 @@ export default { .then((res) => { return { posts: res.data.slice(0, 5) } }) + }, + head: { + title: 'List of posts' } }