mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
Fix https for API call
This commit is contained in:
parent
1798cc004b
commit
20763b1cb6
@ -25,7 +25,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data ({ query }) {
|
data ({ query }) {
|
||||||
const page = +query.page || 1
|
const page = +query.page || 1
|
||||||
return axios.get('http://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