可以添加自定义是否显示异常提示的参数,大致逻辑如下: 1. 在发送请求的地址配置自定义参数,比如: `showErrorTips` # 模拟请求 export const login = (data) => { return request.post('/login', data, { showErrorTips: true }) } 2. 拦截响应中处理是否显示提示  # 在响应的 response 属性 config 中看见有自定义的参数 showErrorTips 可以根据此参数,如果为true,则显示错误提示 service.interceptors.response.use( (response) => { // ... 省略其他 const { config } = response; if (config.showErrorTips) { // 给出提示 } }, (error) => { // ... 省略其他 } ) 3. 给出提示可以默认配置为 `true`,则所有接口就会展示提示,个别不需要展示,则在请求配置为 `false`