Skip to content
New issue

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新问题 #90

Closed
starsoft35 opened this issue Mar 14, 2020 · 3 comments · Fixed by #101
Closed

@umijs/plugin-request新问题 #90

starsoft35 opened this issue Mar 14, 2020 · 3 comments · Fixed by #101
Assignees

Comments

@starsoft35
Copy link

starsoft35 commented Mar 14, 2020

@umijs/plugin-request由于封装一层在异步调用后初始化相关方法,导致以前的request.get(url[, options])、request.post(url[, options])、request.delete(url[, options])、request.patch(url[, options])等快捷方法无法使用,最致命的就是request.interceptors.request.use这无法使用了

@ttys026
Copy link
Contributor

ttys026 commented Mar 17, 2020

+1 request.interceptors.request.use 不能用挺致命的,很多业务升不上来就是因为要在 interceptor 里做未登陆跳转之类的通用处理

@yutingzhao1991
Copy link

这个不是预期要暴露的功能,可以使用运行时里面的 middlewares 替代。

@yutingzhao1991
Copy link

不过可以考虑支持 interceptors 配置。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants