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
@umijs/plugin-request由于封装一层在异步调用后初始化相关方法,导致以前的request.get(url[, options])、request.post(url[, options])、request.delete(url[, options])、request.patch(url[, options])等快捷方法无法使用,最致命的就是request.interceptors.request.use这无法使用了
The text was updated successfully, but these errors were encountered:
+1 request.interceptors.request.use 不能用挺致命的,很多业务升不上来就是因为要在 interceptor 里做未登陆跳转之类的通用处理
Sorry, something went wrong.
这个不是预期要暴露的功能,可以使用运行时里面的 middlewares 替代。
middlewares
不过可以考虑支持 interceptors 配置。
interceptors
yutingzhao1991
Successfully merging a pull request may close this issue.
@umijs/plugin-request由于封装一层在异步调用后初始化相关方法,导致以前的request.get(url[, options])、request.post(url[, options])、request.delete(url[, options])、request.patch(url[, options])等快捷方法无法使用,最致命的就是request.interceptors.request.use这无法使用了
The text was updated successfully, but these errors were encountered: