mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 15:22:39 +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'
|
||||
},
|
||||
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}`)
|
||||
return {
|
||||
page: +data.page,
|
||||
|
Loading…
Reference in New Issue
Block a user