diff --git a/src/pages/compra_admin.vue b/src/pages/compra_admin.vue index aef0751..14d1221 100644 --- a/src/pages/compra_admin.vue +++ b/src/pages/compra_admin.vue @@ -10,10 +10,5 @@ const authStore = useAuthStore(); return { authStore }; }, - mounted() { - if (!this.authStore.isAdmin) { - this.$router.push('/'); - } - }, } diff --git a/src/pages/cuadrar_tarro.vue b/src/pages/cuadrar_tarro.vue index 9035119..dfd0300 100644 --- a/src/pages/cuadrar_tarro.vue +++ b/src/pages/cuadrar_tarro.vue @@ -10,10 +10,5 @@ const authStore = useAuthStore(); return { authStore }; }, - mounted() { - if (!this.authStore.isAdmin) { - this.$router.push('/'); - } - }, } diff --git a/src/pages/cuadres_de_tarro.vue b/src/pages/cuadres_de_tarro.vue index 8678601..9d86b5e 100644 --- a/src/pages/cuadres_de_tarro.vue +++ b/src/pages/cuadres_de_tarro.vue @@ -10,10 +10,5 @@ const authStore = useAuthStore(); return { authStore }; }, - mounted() { - if (!this.authStore.isAdmin) { - this.$router.push('/'); - } - }, } diff --git a/src/pages/sincronizar_clientes_tryton.vue b/src/pages/sincronizar_clientes_tryton.vue index 6fee0e3..c032c74 100644 --- a/src/pages/sincronizar_clientes_tryton.vue +++ b/src/pages/sincronizar_clientes_tryton.vue @@ -141,11 +141,6 @@ result: null, } }, - mounted() { - if (!this.authStore.isAdmin) { - this.$router.push('/'); - } - }, methods: { formatItems(ids) { if (!ids || ids.length === 0) return []; diff --git a/src/pages/sincronizar_productos_tryton.vue b/src/pages/sincronizar_productos_tryton.vue index d091ee5..a0aad2c 100644 --- a/src/pages/sincronizar_productos_tryton.vue +++ b/src/pages/sincronizar_productos_tryton.vue @@ -128,11 +128,6 @@ result: null, } }, - mounted() { - if (!this.authStore.isAdmin) { - this.$router.push('/'); - } - }, methods: { formatItems(ids) { if (!ids || ids.length === 0) return []; diff --git a/src/pages/sincronizar_ventas_tryton.vue b/src/pages/sincronizar_ventas_tryton.vue index 232c291..e413a3e 100644 --- a/src/pages/sincronizar_ventas_tryton.vue +++ b/src/pages/sincronizar_ventas_tryton.vue @@ -98,11 +98,6 @@ result: null, } }, - mounted() { - if (!this.authStore.isAdmin) { - this.$router.push('/'); - } - }, methods: { formatItems(ids) { if (!ids || ids.length === 0) return []; diff --git a/src/pages/ventas_para_tryton.vue b/src/pages/ventas_para_tryton.vue index 3d751a3..0c14bf8 100644 --- a/src/pages/ventas_para_tryton.vue +++ b/src/pages/ventas_para_tryton.vue @@ -9,10 +9,5 @@ const authStore = useAuthStore(); return { authStore }; }, - mounted() { - if (!this.authStore.isAdmin) { - this.$router.push('/'); - } - }, }