amis icon indicating copy to clipboard operation
amis copied to clipboard

fetcher统一拦截时,怎么做重定向呢

Open Songziyuan opened this issue 7 years ago • 0 comments

目前是在fetcher里做了reponse适配,有两个问题: 1,http status 不等于200的时候,不会走到then 2,http status 等于401的时候,希望重定向到登录页 如下图,这个写法无法实现,需要怎么实现呢?

深度截图_选择区域_20190917191853

不走到then看起来是因为这个原因: 深度截图_选择区域_20190917194625

Songziyuan avatar Sep 17 '19 12:09 Songziyuan