diff --git a/examples/routes-transitions/nuxt.config.js b/examples/routes-transitions/nuxt.config.js index b904282bbc..422d6f68cb 100644 --- a/examples/routes-transitions/nuxt.config.js +++ b/examples/routes-transitions/nuxt.config.js @@ -2,6 +2,6 @@ module.exports = { build: { vendor: ['axios'] }, - css: ['assets/main.css'], + css: ['~/assets/main.css'], loading: false } diff --git a/examples/routes-transitions/pages/users.vue b/examples/routes-transitions/pages/users.vue index ecf89457ce..e151058127 100644 --- a/examples/routes-transitions/pages/users.vue +++ b/examples/routes-transitions/pages/users.vue @@ -25,7 +25,7 @@ export default { }, asyncData ({ query }) { const page = +query.page || 1 - return axios.get('https://reqres.in/api/users?page=' + page) + return axios.get(`https://reqres.in/api/users?page=${page}`) .then((res) => { return { page: +res.data.page,