Skip to content

Commit

Permalink
Return array instead of object
Browse files Browse the repository at this point in the history
  • Loading branch information
Joozty committed Jan 9, 2020
1 parent eaa7044 commit b7b0279
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/request/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const apiRequest = async (url, method = 'GET', params = {}) => {
},
})

return { ...response.data, statusCode: response.status }
return [response.data, response.status]
} catch (e) {
const { response, message } = e
let networkError
Expand Down

0 comments on commit b7b0279

Please sign in to comment.