Fix paths & typo

This commit is contained in:
Sébastien Chopin 2017-07-08 20:31:41 +02:00
parent ebb67243c8
commit 51694783b9
2 changed files with 2 additions and 2 deletions

View File

@ -2,6 +2,6 @@ module.exports = {
build: {
vendor: ['axios']
},
css: ['assets/main.css'],
css: ['~/assets/main.css'],
loading: false
}

View File

@ -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,