2018-03-08 09:41:39 +01:00
|
|
|
<template>
|
2019-09-04 17:59:35 +02:00
|
|
|
<el-container id="login">
|
|
|
|
<el-header>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="24" class="close">
|
2022-04-18 15:41:52 +02:00
|
|
|
<el-button
|
|
|
|
type="text"
|
|
|
|
:icon="ElIconClose"
|
|
|
|
@click="close"
|
|
|
|
class="close-button"
|
|
|
|
>
|
|
|
|
</el-button>
|
2019-09-04 17:59:35 +02:00
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-header>
|
|
|
|
<el-container>
|
|
|
|
<div v-shortkey="['esc']" @shortkey="close"></div>
|
|
|
|
<login-form></login-form>
|
|
|
|
</el-container>
|
2018-04-04 13:11:33 +02:00
|
|
|
</el-container>
|
2018-03-08 09:41:39 +01:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2022-04-18 15:41:52 +02:00
|
|
|
import { Close as ElIconClose } from '@element-plus/icons'
|
2018-03-10 14:44:15 +01:00
|
|
|
import LoginForm from './Login/LoginForm'
|
2018-03-08 15:08:33 +01:00
|
|
|
import { mapState } from 'vuex'
|
|
|
|
|
2018-03-08 09:41:39 +01:00
|
|
|
export default {
|
2022-04-18 15:41:52 +02:00
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
ElIconClose,
|
|
|
|
}
|
|
|
|
},
|
2018-03-08 09:41:39 +01:00
|
|
|
name: 'login',
|
2018-03-22 02:46:17 +01:00
|
|
|
components: { LoginForm },
|
2018-03-08 15:08:33 +01:00
|
|
|
computed: {
|
|
|
|
...mapState({
|
2022-04-18 15:41:52 +02:00
|
|
|
page: (state) => state.Login.page,
|
|
|
|
}),
|
2018-03-08 15:08:33 +01:00
|
|
|
},
|
2018-03-20 14:12:06 +01:00
|
|
|
methods: {
|
2019-09-04 17:59:35 +02:00
|
|
|
close() {
|
2018-03-22 02:46:17 +01:00
|
|
|
this.$store.dispatch('Login/pageBack')
|
2019-09-04 17:59:35 +02:00
|
|
|
return this.$router.push({ path: '/', query: { redirect: 'home' } })
|
2022-04-18 15:41:52 +02:00
|
|
|
},
|
|
|
|
},
|
2018-03-08 09:41:39 +01:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2018-04-01 05:10:54 +02:00
|
|
|
<style lang="scss" scoped>
|
2018-08-08 15:16:13 +02:00
|
|
|
#login {
|
2018-03-10 14:44:15 +01:00
|
|
|
background-color: #292f3f;
|
|
|
|
color: #ffffff;
|
2018-03-08 09:41:39 +01:00
|
|
|
text-align: center;
|
2018-03-14 08:12:44 +01:00
|
|
|
min-height: 100%;
|
2018-03-08 15:08:33 +01:00
|
|
|
|
2018-03-20 14:12:06 +01:00
|
|
|
.close {
|
|
|
|
text-align: right;
|
2018-04-04 13:11:33 +02:00
|
|
|
|
|
|
|
.close-button {
|
|
|
|
font-size: 24px;
|
|
|
|
}
|
2018-03-20 14:12:06 +01:00
|
|
|
}
|
2018-03-08 09:41:39 +01:00
|
|
|
}
|
|
|
|
</style>
|