Whalebird-desktop-client-ma.../src/renderer/components/Login.vue

26 lines
413 B
Vue
Raw Normal View History

2018-03-08 09:41:39 +01:00
<template>
<div id="login">
<el-button type="primary" @click="login">Login</el-button>
</div>
</template>
<script>
export default {
name: 'login',
methods: {
login () {
this.$store.dispatch('Login/fetchLogin')
.then((url) => {
this.$router.push({ path: '/authorize' })
})
}
}
}
</script>
<style lang="scss" scoped>
#login {
text-align: center;
}
</style>