- Timestamp:
- 04/29/25 15:00:55 (41 hours ago)
- Branches:
- master
- Children:
- 349551d
- Parents:
- bf78464 (diff), dad25fc (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ReserveNGo-frontend/src/components/Project/register_.vue
rbf78464 r7d8eeab 36 36 37 37 methods: { 38 async register() {39 await fetch(this.wholeUrl, {38 async register() { 39 await fetch(this.wholeUrl, { 40 40 method: 'POST', 41 headers: { 'Content-Type': 'application/ x-www-form-urlencoded' },42 body: new URLSearchParams({41 headers: { 'Content-Type': 'application/json' }, 42 body: JSON.stringify({ 43 43 firstName: this.form_info.firstName, 44 44 lastName: this.form_info.lastName, 45 45 email: this.form_info.email, 46 46 password: this.form_info.password, 47 phoneNumber: this.form_info.phoneNumber}) 48 }).then((response) => response.json()) 49 .then((json) => {this.userStore_.setLocalStorage(json); 50 router.push('/')}) 51 //console.log("Data received:", this.data); 47 phoneNumber: this.form_info.phoneNumber 48 }) 49 }) 50 .then((response) => response.json()) 51 .then((json) => { 52 this.userStore_.setLocalStorage(json); 53 router.push('/'); 54 }); 55 //console.log("Data received:", this.data); 52 56 //this.userStore_.setLocalStorage(json) 53 57 //console.log(json)
Note:
See TracChangeset
for help on using the changeset viewer.