2022-06-27 21:59:35 +00:00
|
|
|
<template>
|
|
|
|
<section class="container">
|
2022-07-11 14:15:10 +00:00
|
|
|
<Login :updateIsLoading="updateIsLoading" />
|
2022-06-27 21:59:35 +00:00
|
|
|
|
|
|
|
<b-loading :is-full-page="true" v-model="isLoading" :can-cancel="false" />
|
|
|
|
</section>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import Login from '@/components/admin/Login.vue'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
components: { Login },
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
// admin: '',
|
|
|
|
isLoading: false,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
updateIsLoading(booleanValue) {
|
|
|
|
this.isLoading = booleanValue
|
|
|
|
},
|
2022-07-26 04:32:08 +00:00
|
|
|
// localStorageData() {
|
2022-06-27 21:59:35 +00:00
|
|
|
// this.admin.idUsuario = Number(localStorage.getItem('idUsuario'))
|
|
|
|
// this.admin.idTipoUsuario = Number(localStorage.getItem('idTipoUsuario'))
|
|
|
|
// this.admin.tipoUsuario = localStorage.getItem('tipoUsuario')
|
|
|
|
// this.admin.token = {
|
|
|
|
// headers: {
|
|
|
|
// token: localStorage.getItem('token'),
|
|
|
|
// },
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
},
|
|
|
|
created() {
|
2022-07-26 04:32:08 +00:00
|
|
|
// this.localStorageData()
|
2022-06-27 21:59:35 +00:00
|
|
|
// if (this.admin.idTipoUsuario === 2) this.$router.push('/responsable')
|
|
|
|
// if (this.admin.idTipoUsuario === 3) this.$router.push('/alumno')
|
|
|
|
// if (this.admin.idTipoUsuario === 4) this.$router.push('/casoEspecial')
|
|
|
|
},
|
|
|
|
layout: 'login',
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped></style>
|