xusen
xusen
但不得不承认3更好用,比如 runAsync 功能。
但不得不承认3更好用,比如 runAsync 功能。
@ipcjs 你好,感谢您提的pr。因为该项目烂尾了,目前我也需要这个功能,不知道您是否有意向发布到pub.dev呢?
为什么被下架了,提示什么呢? 嗯,现在先用的git repo。
response中内容比较大的情况下,我这里大于30k就不行了。
目前来说,isomorphic-fetch 作者已经升级到 3.0.0 。可以尝试 fork umi-request,修改 isomorphic-fetch 版本测试。 但我们找到了另外一个解决办法:node 版本使用 [FROM node:14.16.1-stretch-slim](https://registry.hub.docker.com/layers/node/library/node/14.16.1-stretch-slim/images/sha256-d31fad3fafb3fa53e99b6425638949a24e8ec9699b4f236232c259bc8fd35e52?context=explore) 就可以了。以前我们用的 16.x 版本
没问题的! responseInterceptors: [async (response, options) => { return response.clone().json().then(res => { return res?.data || {} }) }]