📜  vue axios 捕获错误 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:01.483000             🧑  作者: Mango

代码示例1
axios.get('/user/1').then((response) => {
    console.log('Everything is awesome.');
}).catch((error) => {
    console.warn('Not good man :(');
})