27 lines
606 B
Vue
27 lines
606 B
Vue
<template>
|
|
<section class="section">
|
|
<VistaServicio />
|
|
</section>
|
|
</template>
|
|
|
|
<script>
|
|
import VistaServicio from '@/components/admin/servicio/vistaServicio'
|
|
|
|
export default {
|
|
components: {
|
|
VistaServicio,
|
|
},
|
|
beforeCreate() {
|
|
const idTipoUsuario = Number(localStorage.getItem('idTipoUsuario'))
|
|
|
|
if (idTipoUsuario === 2) this.$router.push('/responsable')
|
|
if (idTipoUsuario === 3) this.$router.push('/alumno')
|
|
if (idTipoUsuario === 4) this.$router.push('/casoEspecial')
|
|
|
|
if (!localStorage.getItem('idServicio')) {
|
|
this.$router.push('/admin')
|
|
}
|
|
},
|
|
}
|
|
</script>
|