前端用 axios 发的请求如果参数不全后端返回 400 ,但是我在 axios 里 then 后 catch 了,能够 catch 到 status 400 ,但是 F12 里面还是有红色的,不好看
xhr.js?b50d:210 POST http://localhost:8080/api/comment/ 400 (Bad Request)
即使加了拦截器也没起作用,这个能被拦到到吗?
当然在前端做参数校验有错就不提交,是可以避免后端返回 400 ,就想问下这个能避免吗