Advertisement
Guest User

Untitled

a guest
Aug 30th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (async() => {
  2.               let response = null;
  3.               try {
  4.                 response = await axios({
  5.                   method: 'post',
  6.                   url: 'https://secure.rsantana.us/phptest.php',
  7.                   data: {
  8.                     countXHR: t.count
  9.                   }
  10.                 });
  11.                 t.count = response.data.count;
  12.                 localStorage.count = response.data.count;
  13.                 console.log(response.data);
  14.                 t.getUsers();
  15.               } catch (err) {
  16.                 console.error("Error response:");
  17.                 console.error(err.response.data);
  18.                 console.error(err.response.status);
  19.                 console.error(err.response.headers);
  20.               } finally {
  21.                 console.log(response);
  22.                 t.loading = !this.loading;
  23.                 //t.getUsers();
  24.               }
  25.             })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement