return
.
this.$http.post("http://localhost:8000/oauth/token", data).then(response => {
// ...
return response;
}).then((myResponse) => {
console.log('first result', myResponse);
// ...
});
let myResponse;
this.$http.post("http://localhost:8000/oauth/token", data).then(response => {
myResponse = response;
// ...
}).then(() => {
console.log('first result', myResponse);
// ...
});