Last active
August 18, 2018 14:15
-
-
Save enkot/2b05ebe87f92d4acf98313a087f20f5d 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