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

axios封装存在问题 #28

Closed
Tron1234 opened this issue Apr 19, 2023 · 1 comment
Closed

axios封装存在问题 #28

Tron1234 opened this issue Apr 19, 2023 · 1 comment

Comments

@Tron1234
Copy link

image

如果Http.axiosConfigDefault使用的是Object.assign的话没次调用request,Http.axiosConfigDefault都会加入上一次请求的paramConfig,不断累加合并,需要改成这样const config = { ...Http.axiosConfigDefault, ...paramConfig },保证每次请求不会污染Http.axiosConfigDefault
@yulimchen
Copy link
Owner

感谢指出,已修复

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

No branches or pull requests

2 participants