Advertisement
Guest User

Untitled

a guest
Aug 25th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. fetch('/saveInDB/livraison', {
  2. credentials: 'include',
  3. method: 'post',
  4. body: JSON.stringify(values),
  5. headers: new Headers({'Content-Type': 'application/json'})
  6. })
  7. .then(res => res.json())
  8. .then(res => {
  9. if (res.error) {
  10. console.log(res.error);
  11. } else {
  12. console.log(res.success);
  13. commandeStore.display = 'paiement';
  14. commandeStore.status = '80vw';
  15. }
  16. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement