Agregando proteccion a rutas #38

Merged
mono merged 3 commits from add-auth-protection-routes into main 2026-03-15 23:54:32 -05:00
7 changed files with 0 additions and 35 deletions
Showing only changes of commit faa5cf1a46 - Show all commits

View File

@@ -10,10 +10,5 @@
const authStore = useAuthStore();
return { authStore };
},
mounted() {
if (!this.authStore.isAdmin) {
this.$router.push('/');
}
},
}
</script>

View File

@@ -10,10 +10,5 @@
const authStore = useAuthStore();
return { authStore };
},
mounted() {
if (!this.authStore.isAdmin) {
this.$router.push('/');
}
},
}
</script>

View File

@@ -10,10 +10,5 @@
const authStore = useAuthStore();
return { authStore };
},
mounted() {
if (!this.authStore.isAdmin) {
this.$router.push('/');
}
},
}
</script>

View File

@@ -141,11 +141,6 @@
result: null,
}
},
mounted() {
if (!this.authStore.isAdmin) {
this.$router.push('/');
}
},
methods: {
formatItems(ids) {
if (!ids || ids.length === 0) return [];

View File

@@ -128,11 +128,6 @@
result: null,
}
},
mounted() {
if (!this.authStore.isAdmin) {
this.$router.push('/');
}
},
methods: {
formatItems(ids) {
if (!ids || ids.length === 0) return [];

View File

@@ -98,11 +98,6 @@
result: null,
}
},
mounted() {
if (!this.authStore.isAdmin) {
this.$router.push('/');
}
},
methods: {
formatItems(ids) {
if (!ids || ids.length === 0) return [];

View File

@@ -9,10 +9,5 @@
const authStore = useAuthStore();
return { authStore };
},
mounted() {
if (!this.authStore.isAdmin) {
this.$router.push('/');
}
},
}
</script>