From b7cd4c1ecff94c4db926442d9628d13538593152 Mon Sep 17 00:00:00 2001 From: Anderson Date: Mon, 3 Sep 2018 16:58:46 +0800 Subject: [PATCH] Update request.js Fix bug, pass additional parameters to then chain in promise. --- src/utils/request.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/request.js b/src/utils/request.js index 4faaae74..ffad1ed9 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -121,7 +121,7 @@ export default function request( } return fetch(url, newOptions) .then(checkStatus) - .then(cachedSave) + .then(response => cachedSave(response, hashcode)) .then(response => { // DELETE and 204 do not return data by default // using .json will report an error. -- GitLab