【】关于axios发送post请求返回400状态码【请求失败,code非200的】的问题,如何接收到json格式!
huangjin99:
xhr.js:210 POST http://localhost:2881/login?cmd=1 400 (Bad Request)
dispatchXhrRequest @ xhr.js:210
xhrAdapter @ xhr.js:15
dispatchRequest @ dispatchRequest.js:58
request @ Axios.js:108
Axios. @ Axios.js:140
wrap @ bind.js:9
handleLogin @ index.vue:67
click @ index.vue:17
invokeWithErrorHandling @ vue.esm.js:1863
invoker @ vue.esm.js:2188
original._wrapper @ vue.esm.js:7565
index.vue:79 Error: Request failed with status code 400
at createError (createError.js:16:1)
at settle (settle.js:17:1)
at XMLHttpRequest.onloadend (xhr.js:66:1)
index.vue:82
Error
出错了
index.vue:83 400
index.vue:84 {connection: 'close', content-language: 'zh-CN', content-type: 'text/html;charset=UTF-8', date: 'Wed, 27 Sep 2023 06:11:46 GMT', transfer-encoding: 'chunked', …}
index.vue:89 {transitional: {…}, transformRequest: Array(1), transformResponse: Array(1), timeout: 0, adapter: ƒ, …}
|