0👍
You could call getAllCustomers()
in the then
callback of axios.post()
, which would refresh customer
with the latest data from the database:
axios.post(...).then(() => this.getAllCustomers())
Source:stackexchange.com
0👍
You could call getAllCustomers()
in the then
callback of axios.post()
, which would refresh customer
with the latest data from the database:
axios.post(...).then(() => this.getAllCustomers())