amis icon indicating copy to clipboard operation
amis copied to clipboard

拦截接口返回 401 ,跳转到登录页面

Open wp215 opened this issue 6 years ago • 1 comments

实现场景:

请求接口的时候返回 401,跳转到登录页面。登录成功返回 token, 在以后的请求header 里带上 token。

wp215 avatar Oct 08 '20 08:10 wp215

应该可以在自定义fetcher里实现该逻辑

RickCole21 avatar Oct 19 '20 02:10 RickCole21