this.axios({
method: 'POST',
url: URL,
data: {
"mobile": tel,
"auth_code": code,
"lngLat": this.lngLat,
"regSource": 'H5',
"frc": "H5",
"ref": this.ref
},
headers: {
'appId': config.config.APPID,
'token': this.token
}
})
.then(function (response) {
console.log(response)
})
.catch(function (error) {
console.log(error)
});
console.log(error)里边输出
Error: Request failed with status code 400
at createError (createError.js?16d0:16)
at settle (settle.js?db52:18)
at XMLHttpRequest.handleLoad (xhr.js?ec6c:77)
at _this.(anonymous function) (chrome- extension://jegnjmcegcpodciadcoeneecmkiccfgi/enablecrossorigin.js:81:55)
这样写哪里错了吗,为什么catch(err)啊
烙印99
慕妹3242003
汪汪一只猫
蝴蝶不菲
相关分类