vue之axios返回400...获取后台返回得信息
this.$api.post('/api/liuyi/manager/app/add',this.$qs.stringify(this.form),}).then(response => {console.log(response)var data = response.data;...
·
this.$api.post('/api/liuyi/manager/app/add',
this.$qs.stringify(this.form),
}).then(response => {
console.log(response)
var data = response.data;
if(data.code == 200){
this.$message('创建成功');
}
})
.catch(err => {
//重点重点重点重点重点重点重点重点重点重点重点重点重点重点重点重点重点重点重点重点重点重点重点重点
console.log(err.response.status);
})
微信公号搜索:李大头头。(或扫描二维码)找我来玩。
更多【前端技术群】和【内推职位】 资源等着你。
还不定期在公众号请大家喝奶茶!
想与我聊聊或者有什么问题都可以在公众号找到我。
等你哟~
更多推荐
已为社区贡献9条内容
所有评论(0)