Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Do you need to add the axiosCancelToken. removeRequest feature? #7

Open
31344436 opened this issue Apr 28, 2024 · 0 comments
Open

Comments

@31344436
Copy link

instance.interceptors.response.use(
  (response) => {

//add removeRequest
if (response && response.request) axiosCancelToken.removeRequest(response.request)

    // 此处为前后端约定的接口成功的字段,旨在处理状态码为200的错误响应,开发者可自行调整

}

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

No branches or pull requests

1 participant