Advertisement
Ethrian

Untitled

Feb 4th, 2019
1,205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. const application = new Vue({
  2. el: '#reg',
  3. data: {
  4. Player: {
  5. Username: '',
  6. Email: '',
  7. Password: '',
  8. Confirmation: ''
  9. }
  10. },
  11. methods: {
  12. register: function () {
  13. let regform = this.Player;
  14. const options = {
  15. method: 'POST',
  16. headers: {'content-type':'application/form-data'},
  17. data: regform,
  18. url: ''
  19. };
  20. axios(options)
  21. .then(function (response) {
  22. if(error == false){
  23. //--------------------------------------------
  24. }
  25. })
  26. .catch()
  27. }
  28. },
  29. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement