1. Request interceptor
2. Response interceptor
For details, please refer to the following:
Axios Request Interceptor & Response Interceptor - Brief Book 1. Interceptor Introduction Generally, when using axios, the function of interceptor will be used, which are generally divided into two types: request interceptor and response interceptor. The request interceptor performs necessary operations before the request is sent, such as adding a unified cookie, request body... https://www.jianshu.com/p/6e10aaf4688b