mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-04 03:17:14 +00:00
Fix paths & typo
This commit is contained in:
parent
ebb67243c8
commit
51694783b9
@ -2,6 +2,6 @@ module.exports = {
|
|||||||
build: {
|
build: {
|
||||||
vendor: ['axios']
|
vendor: ['axios']
|
||||||
},
|
},
|
||||||
css: ['assets/main.css'],
|
css: ['~/assets/main.css'],
|
||||||
loading: false
|
loading: false
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ export default {
|
|||||||
},
|
},
|
||||||
asyncData ({ query }) {
|
asyncData ({ query }) {
|
||||||
const page = +query.page || 1
|
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) => {
|
.then((res) => {
|
||||||
return {
|
return {
|
||||||
page: +res.data.page,
|
page: +res.data.page,
|
||||||
|
Loading…
Reference in New Issue
Block a user