From 821f001e73d067a50f0fcd50e2d0e3d52a424edc Mon Sep 17 00:00:00 2001 From: Sebastien Chopin Date: Thu, 3 Aug 2017 10:47:19 +0200 Subject: [PATCH] Update to use nuxt generate --- examples/async-data/nuxt.config.js | 8 ++++++++ examples/async-data/pages/index.vue | 2 +- examples/async-data/pages/posts/index.vue | 3 +++ 3 files changed, 12 insertions(+), 1 deletion(-) 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' } }