Просмотр исходного кода

Update request.js

Fix bug, pass additional parameters to then chain in promise.
Anderson 7 лет назад
Родитель
Сommit
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)
     .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.