mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 23:32:38 +00:00
remove unnecessary plus
This commit is contained in:
parent
2bf02731f2
commit
ad09857234
@ -24,7 +24,7 @@ export default {
|
|||||||
return +to.query.page < +from.query.page ? 'slide-right' : 'slide-left'
|
return +to.query.page < +from.query.page ? 'slide-right' : 'slide-left'
|
||||||
},
|
},
|
||||||
async asyncData ({ query }) {
|
async asyncData ({ query }) {
|
||||||
const page = +query.page || 1
|
const page = query.page || 1
|
||||||
const { data } = await axios.get(`https://reqres.in/api/users?page=${page}`)
|
const { data } = await axios.get(`https://reqres.in/api/users?page=${page}`)
|
||||||
return {
|
return {
|
||||||
page: +data.page,
|
page: +data.page,
|
||||||
|
Loading…
Reference in New Issue
Block a user