Songziyuan

Results comments of Songziyuan

> 所有的请求都走 fetcher , fetcher 里面加个 then 用来做拦截就行。 你好,是在App.tsx里添加then么? 如果不是的话,能否告知是在哪里添加呢?或者有没有一个demo可以参考,amis-admin这个demo里,没有找到类似的写法

> 在这 补个 then 就可以了 https://github.com/fex-team/amis-admin/blob/master/App.tsx#L44 成功了,感谢你! ![image](https://user-images.githubusercontent.com/15028748/63835519-35751680-c9aa-11e9-915e-ff2cd8cfaff9.png)

fetcher里拦截一下: ![image](https://user-images.githubusercontent.com/15028748/65040095-36d0a800-d986-11e9-924a-7715d2acbdf4.png)

用HttpUrlConnection不好吗?就一个上传图片的SDK,搞的应用大了这么多。 内部做一个switch,Android版本大于2.3用HttpUrlConnection,小于2.3用HttpClient。