Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (async() => {
- let response = null;
- try {
- response = await axios({
- method: 'post',
- url: 'https://secure.rsantana.us/phptest.php',
- data: {
- countXHR: t.count
- }
- });
- t.count = response.data.count;
- localStorage.count = response.data.count;
- console.log(response.data);
- t.getUsers();
- } catch (err) {
- console.error("Error response:");
- console.error(err.response.data);
- console.error(err.response.status);
- console.error(err.response.headers);
- } finally {
- console.log(response);
- t.loading = !this.loading;
- //t.getUsers();
- }
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement