AxiosError {message: 'Request failed with status code 400', name: 'AxiosError', code: 'ERR_BAD_REQUEST', config: {…}, request: XMLHttpRequest, …}code: "ERR_BAD_REQUEST"config: {transitional: {…}, adapter: Array(2), transformRequest: Array(1), transformResponse: Array(1), timeout: 0, …}message: "Request failed with status code 400"name: "AxiosError"request: XMLHttpRequest {onreadystatechange: null, readyState: 4, timeout: 0, withCredentials: false, upload: XMLHttpRequestUpload, …}response: {data: {…}, status: 400, statusText: '', headers: AxiosHeaders, config: {…}, …}stack: "AxiosError: Request failed with status code 400\n at settle (webpack-internal:///./node_modules/axios/lib/core/settle.js:24:12)\n at XMLHttpRequest.onloadend (webpack-internal:///./node_modules/axios/lib/adapters/xhr.js:106:66)"[[Prototype]]: Error,前端输入了mobile的值,为什么这里的mobile=null
时间: 2024-03-31 20:32:57 浏览: 662
基于小程序请求接口wx.request封装的类axios请求
5星 · 资源好评率100%
根据你提供的信息,我可以看出这是一个AxiosError,其中response字段包含了服务器返回的信息。400状态码通常表示客户端请求有误,服务器无法处理该请求。在你提供的信息中,response字段的data属性可能包含了服务器返回的具体错误信息。至于为什么mobile的值为null,可能是前端未正确传递该参数或者后端未能正确接收到该参数。需要更多的信息来确定问题的具体原因。
阅读全文