M
M
Malik2021-02-11 21:40:35
Vue.js
Malik, 2021-02-11 21:40:35

How can I save the data coming from the backend and resend it?

I send data via a post request to the backend via axios , the backend returns an id, I need to save it and send it again, how can I implement this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Erl, 2021-02-11
@NooBiToo

in

data() {
  return {
    data: ""
  }
}
async fetch() {
  this.data = postzapros
}

W
WapSter, 2021-02-11
@wapster92

axios sends a promise after it has received a response, send a new request with the desired id google promise or async/await. If you do not need to immediately send save to data

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question