Home > front end >  This points to problems in axios
This points to problems in axios

Time:09-24

In this point to problems in axios, here's an example:

Async doGet () {
Let a=[];
var that=this;
Await axios ({
Method: "get",
Url: "http://49.200.200.200:3000/api/v1/donation"
})
Then (
Await the function (resp) {
The console. The log (resp. Data);
That. Donations=resp. Data;

This is just a part of the code, I hope to be of help,
  • Related