0👍
Use
$axios.defaults.validateStatus = (status) => {
return [200, 402].indexOf(status) !== -1;
};
$axios.onResponse(async (response) => {...}
Source:stackexchange.com
0👍
Use
$axios.defaults.validateStatus = (status) => {
return [200, 402].indexOf(status) !== -1;
};
$axios.onResponse(async (response) => {...}