pleroma-fe/src/components/login_form/login_form.js

18 lines
320 B
JavaScript
Raw Normal View History

2016-10-28 03:02:41 +11:00
const LoginForm = {
data: () => ({
user: {}
}),
computed: {
loggingIn () { return this.$store.state.users.loggingIn }
},
methods: {
submit () {
2016-10-31 00:25:18 +11:00
this.$store.dispatch('loginUser', this.user).then(() => {
this.$router.push('/main/friends')
})
2016-10-28 03:02:41 +11:00
}
}
}
export default LoginForm