amis
amis copied to clipboard
拦截接口返回 401 ,跳转到登录页面
实现场景:
请求接口的时候返回 401,跳转到登录页面。登录成功返回 token, 在以后的请求header 里带上 token。
应该可以在自定义fetcher里实现该逻辑