关于取消重复请求,为什么AxiosCanceler里,getPendingUrl生成key时没有把参数考虑进去? #3485
fyu-Phoenix
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
export const getPendingUrl = (config: AxiosRequestConfig) => [config.method, config.url].join('&')
key只包含了method和url,没有包含params。那么两个post请求,即使body里的参数完全不一样,其中一个也会被取消掉
想问下这样处理是有什么特殊原因吗?有哪些场景是需要这样判断的呢
Beta Was this translation helpful? Give feedback.
All reactions