From 115b2b0f7db2cb05d3c0abb1fd416302e0869603 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=B1=E8=A3=A4=E8=A1=A9?= Date: Wed, 16 Aug 2017 09:56:01 +0800 Subject: [PATCH] Update fetch.js --- src/utils/fetch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/fetch.js b/src/utils/fetch.js index 52817b9..a421fdf 100644 --- a/src/utils/fetch.js +++ b/src/utils/fetch.js @@ -48,7 +48,7 @@ service.interceptors.response.use( }); }) } - return Promise.reject(error); + return Promise.reject('error'); } else { return response.data; }