-
-
Save wataruoguchi/60b902eeb620120ab16e55878d2051eb to your computer and use it in GitHub Desktop.
This file contains 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
// src/views/SignUp.vue | |
<script> | |
import {signUp} from '@/utils/auth.js' // Adding this line | |
export default { | |
name: "SignUp", | |
... | |
methods: { | |
submit() { | |
if (this.$refs.form.validate()) { | |
console.log(`SIGN UP username: ${this.username}, password: ${this.password}, email: ${this.username}`); | |
signUp(this.username, this.password); // Adding this line as well | |
} | |
}, | |
}, | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment