Guest User

Untitled

a guest
Mar 5th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. let res = {
  2. phone: this.registerData.phone,
  3. companyname: this.registerData.companyname,
  4. username: this.registerData.username,
  5. email: this.registerData.email,
  6. password: this.registerData.password,
  7. }
  8.  
  9. // console.log(res);
  10. var _this = this
  11. var vm = this.hasErrors
  12. var _vm = this.errorMessage
  13. this.$http.post('http://localhost:3000/api/users', res)
  14. .then(function (response) {
  15.  
  16. if(response.status=== 200){
  17. console.log('move');
  18.  
  19. this.$router.push('/login');
  20. }else{
  21. console.log('unknow');
  22. }
  23. })
Add Comment
Please, Sign In to add comment