-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Sync axios #2
Labels
enhancement
New feature or request
Comments
ModyQyW
changed the title
Sync axios 1.2.1 and release 1.0.0
Sync axios 1.2.2 and release 1.0.0
Jan 3, 2023
AxiosHeaders 引发大量问题,而且增加了复杂性,不再同步 AxiosHeaders 到 UnHeaders。 // axios 下报类型错误,uni-network 没有问题
instance.interceptors.request.use((config) => ({
...config,
headers: {
token: 'abc',
},
}));
// 正常
instance.interceptors.request.use((config) => {
config.headers = configs.headers ?? {};
config.headers.token = 'abc';
return config;
}); |
|
|
引入了 AxiosURLSearchParams,会增加复杂性和体积。不再同步该部分。 |
axios 1.2.2 重构了 adapter 加载,会增加复杂性和体积。不再同步该部分。 |
axios 1.6 优化了错误追踪,已同步,目前已同步至 1.7.3。 |
已同步至1.7.7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: