记录请求接口时的错误信息

this.get().catch(err=>{
    console.log(err)
    //对错误信息进行相应的操作
})

猜你喜欢

转载自blog.csdn.net/lemon_bubbly/article/details/79966675