فهرست منبع

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.