Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let res = {
- phone: this.registerData.phone,
- companyname: this.registerData.companyname,
- username: this.registerData.username,
- email: this.registerData.email,
- password: this.registerData.password,
- }
- // console.log(res);
- var _this = this
- var vm = this.hasErrors
- var _vm = this.errorMessage
- this.$http.post('http://localhost:3000/api/users', res)
- .then(function (response) {
- if(response.status=== 200){
- console.log('move');
- this.$router.push('/login');
- }else{
- console.log('unknow');
- }
- })
Add Comment
Please, Sign In to add comment