Last active
August 19, 2018 18:05
-
-
Save enkot/7b49a06565d480aa3a79b9ce7b37bfbc 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
@Component | |
class LoginPage extends Vue { | |
// ... | |
async loginUser() { | |
try { | |
const token = await api.loginUser(this.email, this.password) | |
handleLogin(token) | |
} catch(error) { | |
Toast.error(error.message) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment