게속 프론트에서 nickname 이 없다고해서
result를 console로 찍어보니
- Promise {<pending>}
- __proto__: Promise
- [[PromiseStatus]]: "resolved"
-
- [PromiseValue]]: Object
- config: {url: "/user/login", method: "post", data: "{"userId":"op","password":"op"}", headers: {…}, baseURL: "http://localhost:8080/api", …}
- data: {id: 6, nickname: "op", userId: "op", createdAt: "2020-06-25T02:11:14.000Z", updatedAt: "2020-06-25T02:11:14.000Z"}
- headers: {content-length: "116", content-type: "application/json; charset=utf-8"}
- request: XMLHttpRequest {readyState: 4, timeout: 0, withCredentials: false, upload: XMLHttpRequestUpload, onreadystatechange: ƒ, …}
- status: 200
- statusText: "OK"
- __proto__: Object
- 이렇게 되있는데 여기서 어떻게 data로 접근하죠?
- result.data로 하면 error뜹니다ㅠㅠ