We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如题,并且路由跳转之前默认取消所有的请求,并不十分合理,比如menuList级别的request ,如果被提前终止会导致bug path: src/routers/utils/authRouter.tsx // * 在跳转路由之前,清除所有的请求 axiosCanceler.removeAllPending();
// * 在跳转路由之前,清除所有的请求 axiosCanceler.removeAllPending();
建议addPending时添加header判断
// axiosCanceler.addPending(config) // 修改为 config.headers!.notAllowCancel || axiosCanceler.addPending(config);
The text was updated successfully, but these errors were encountered:
新版改了,还在重构中……
Sorry, something went wrong.
No branches or pull requests
如题,并且路由跳转之前默认取消所有的请求,并不十分合理,比如menuList级别的request ,如果被提前终止会导致bug
path: src/routers/utils/authRouter.tsx
// * 在跳转路由之前,清除所有的请求 axiosCanceler.removeAllPending();
建议addPending时添加header判断
// axiosCanceler.addPending(config) // 修改为 config.headers!.notAllowCancel || axiosCanceler.addPending(config);
The text was updated successfully, but these errors were encountered: