I am making a request, which returns me the error 401, however I can not get that number
axios.post(config.urlBase+'adicionar_empresa',formData).then(res=>{if(res.data){this.refs.sucesso.openSucesso(2000);this.refs.load.closeLoad();this.limparCampos();}else{this.refs.erro.openErro(3000);this.refs.load.closeLoad();}}).catch(e=>{console.log(e)});
WhenIrunthecodeup,theconsoledisplaysthis:
I believed that in catch it would bring this information, but it does not, does anyone know how to do it? I got a good researched and nothing worked for me.
Thank you!