<template>
  <section class="container">
    <Login :updateIsLoading="updateIsLoading" />

    <b-loading :is-full-page="true" v-model="isLoading" :can-cancel="false" />
  </section>
</template>

<script>
import Login from '@/components/Login'

export default {
  components: { Login },
  data() {
    return {
      // admin: '',
      isLoading: false,
    }
  },
  methods: {
    updateIsLoading(booleanValue) {
      this.isLoading = booleanValue
    },
    // localStorageData() {
    //   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() {
    // this.localStorageData()
    // 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>
