Browse Source

Update request.js

Fix bug, pass additional parameters to then chain in promise.
pull/2138/head
Anderson 8 years ago
committed by 偏右
parent
commit
b7cd4c1ecf
  1. 2
      src/utils/request.js

2
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.

Loading…
Cancel
Save