简体   繁体   English

为什么axios以[objects][object]的形式发送响应?

[英]Why Axios Sending response in the form of [objects] [object]?

axios({
  method: 'get',
  url: 'http://localhost:8080/api/users/current',
  headers: {
    'Authorization': 'Token ' + token
  },
}).then(response => { console.log(response) })

the axios method is sending response in the form of [object] [object] axios 方法以 [object] [object] 的形式发送响应

由于 Promises 它显示对象但您可以使用对象中的数据

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM