Created
May 23, 2018 21:22
-
-
Save cannap/dbc0b9ff5746091a7bdc07330c36d3c1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async register () { | |
try { | |
const user = await this.$store.dispatch('auth/register', this.form) | |
console.log('User registered', user) | |
} catch (error) { | |
console.log('Fail in local component', error) | |
} | |
}, | |
async lo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async register ({ | |
commit | |
}, userData) { | |
try { | |
const result = await this.axios.post('auth/register', userData) | |
console.log('WOOT') | |
} catch (error) { | |
console.log('user registration failed') | |
} | |
}, | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment