From b7b0279778d9889ffd6b37f2c707d095acda1e53 Mon Sep 17 00:00:00 2001 From: Joozty <32jojo32@gmail.com> Date: Thu, 9 Jan 2020 17:00:34 +0100 Subject: [PATCH] Return array instead of object --- src/request/request.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/request/request.js b/src/request/request.js index bce657f..94abad4 100644 --- a/src/request/request.js +++ b/src/request/request.js @@ -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