浏览代码

Update request.js

Fix bug, pass additional parameters to then chain in promise.
Anderson 7 年之前
父节点
当前提交
b7cd4c1ecf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/utils/request.js

+ 1 - 1
src/utils/request.js

@@ -121,7 +121,7 @@ export default function request(
   }
   }
   return fetch(url, newOptions)
   return fetch(url, newOptions)
     .then(checkStatus)
     .then(checkStatus)
-    .then(cachedSave)
+    .then(response => cachedSave(response, hashcode))
     .then(response => {
     .then(response => {
       // DELETE and 204 do not return data by default
       // DELETE and 204 do not return data by default
       // using .json will report an error.
       // using .json will report an error.